lib/cli/kit/resolver.rb in cli-kit-3.3.0 vs lib/cli/kit/resolver.rb in cli-kit-4.0.0
- old
+ new
@@ -23,11 +23,11 @@
end
private
def command_not_found(name)
- CLI::UI::Frame.open("Command not found", color: :red, timing: false) do
+ CLI::UI::Frame.open('Command not found', color: :red, timing: false) do
$stderr.puts(CLI::UI.fmt("{{command:#{@tool_name} #{name}}} was not found"))
end
cmds = commands_and_aliases
if cmds.all? { |cmd| cmd.is_a?(String) }
@@ -41,10 +41,10 @@
CLI::Kit::Levenshtein.distance(possible_match, name) > 3
end
# If we have any matches left, tell the user
if possible_matches.any?
- CLI::UI::Frame.open("{{bold:Did you mean?}}", timing: false, color: :blue) do
+ CLI::UI::Frame.open('{{bold:Did you mean?}}', timing: false, color: :blue) do
possible_matches.each do |possible_match|
$stderr.puts CLI::UI.fmt("{{command:#{@tool_name} #{possible_match}}}")
end
end
end