diff options
| author | Jack Nagel | 2014-05-28 14:03:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-28 14:03:06 -0500 |
| commit | 17a27d34649786a9f65e8eef88870e67800b1fed (patch) | |
| tree | 24314a5c68bdc8334057c7dd4e9ed379660f4b65 /Library | |
| parent | c49e23e77a1682b6ce4203cb0aa26b479993e1ff (diff) | |
| download | brew-17a27d34649786a9f65e8eef88870e67800b1fed.tar.bz2 | |
versions: remove --compact option
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 14 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 16 |
2 files changed, 7 insertions, 23 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 9aa58fed1..1ee3911c7 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -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 } diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index b634e24a8..af59ccb3a 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -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 |
