diff options
| author | Bjørn Arild Mæland | 2009-09-03 17:10:35 +0200 |
|---|---|---|
| committer | Max Howell | 2009-09-04 16:14:51 +0100 |
| commit | 8b1b3d2a975d50fe57c2143cee79e09c0bc48609 (patch) | |
| tree | 8eeef113281a613a6c7ca1a3d57abf72e512bf7d /bin | |
| parent | d11165cd97912e22e07ec67c040dafb2b9f9c78f (diff) | |
| download | brew-8b1b3d2a975d50fe57c2143cee79e09c0bc48609.tar.bz2 | |
Sort the output from `brew install`
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,5 @@ #!/usr/bin/ruby +# -*- coding: utf-8 -*- $:.unshift ENV['RUBYLIB']=File.expand_path(__FILE__+'/../../Library/Homebrew') require 'pathname+yeast' require 'ARGV+yeast' @@ -70,8 +71,10 @@ begin if ARGV.named_empty? # TODO I tried to columnise it using the 'column' utility but it uses # tabs rather than spaces and the output looked wrong - puts "Available formulae:" - (HOMEBREW_PREFIX+'Library'+'Formula').children.each {|f| puts f.basename('.rb') } + puts "You must specify a formula. The following are available:" unless ARGV.quieter? + (HOMEBREW_PREFIX+'Library'+'Formula').children.sort.each do |f| + puts f.basename('.rb') + end exit 0 end |
