Skip to content

Commit

Permalink
fix: Make warnings yellow
Browse files Browse the repository at this point in the history
  • Loading branch information
pusewicz committed Mar 16, 2024
1 parent f7e5505 commit a573d15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/vimpk/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def determine_command
when "rm", "remove"
:remove_command
else
warn colorize("Unknown command: #{name}", color: :red)
warn colorize("Unknown command: #{name}", color: :yellow)
abort help_message
end
end
Expand All @@ -56,12 +56,12 @@ def install_command(package = nil)
install.call
puts colorize("Installed #{package} to #{install.dest}. Took #{Time.now - time} seconds.", color: :green)
rescue Git::GitError => e
warn colorize("Error: #{e.message}", color: :red)
warn colorize("Error: #{e.message}", color: :yellow)
abort e.output.lines.map { |line| " #{line}" }.join
rescue Install::PackageExistsError => e
warn colorize("Error: #{e.message}", color: :red)
abort colorize("Error: #{e.message}", color: :red)
rescue ArgumentError => e
warn colorize("Error: #{e.message}", color: :red)
abort colorize("Error: #{e.message}", color: :red)
end

def move_command(name = nil)
Expand Down

0 comments on commit a573d15

Please sign in to comment.