versions: remove --compact option
This commit is contained in:
parent
c49e23e77a
commit
17a27d3464
@ -435,18 +435,6 @@ _brew_uses ()
|
||||
__brew_complete_formulae
|
||||
}
|
||||
|
||||
_brew_versions ()
|
||||
{
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "$cur" in
|
||||
--*)
|
||||
__brewcomp "--compact"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
__brew_complete_formulae
|
||||
}
|
||||
|
||||
_brew ()
|
||||
{
|
||||
local i=1 cmd
|
||||
@ -550,7 +538,7 @@ _brew ()
|
||||
update) _brew_update ;;
|
||||
upgrade) _brew_upgrade ;;
|
||||
uses) _brew_uses ;;
|
||||
versions) _brew_versions ;;
|
||||
versions) __brew_complete_formulae ;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
@ -13,16 +13,12 @@ module Homebrew extend self
|
||||
https://github.com/Homebrew/homebrew-versions
|
||||
EOS
|
||||
ARGV.formulae.all? do |f|
|
||||
if ARGV.include? '--compact'
|
||||
puts f.versions * " "
|
||||
else
|
||||
relative_path = f.pretty_relative_path
|
||||
f.versions do |version, sha|
|
||||
print Tty.white.to_s
|
||||
print "#{version.to_s.ljust(8)} "
|
||||
print Tty.reset.to_s
|
||||
puts "git checkout #{sha} #{relative_path}"
|
||||
end
|
||||
relative_path = f.pretty_relative_path
|
||||
f.versions do |version, sha|
|
||||
print Tty.white.to_s
|
||||
print "#{version.to_s.ljust(8)} "
|
||||
print Tty.reset.to_s
|
||||
puts "git checkout #{sha} #{relative_path}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user