Commit Graph
270 Commits
Author SHA1 Message Date
Max Howell 7fafb5035e brew by itself prints help but exits with non-zero 2011-03-13 13:42:48 +00:00
Max Howell 53f83ccec7 Move the Dir.getwd after help
Because we should always be able to help. And I've checked, it works fine.
2011-03-13 13:42:32 +00:00
Max Howell f828347b82 brew environment alias to --env; like gem 2011-03-13 12:53:07 +00:00
Max Howell 28d0d165a7 Support the brew instal typo
Because `gem instal` works too.
2011-03-12 11:55:05 -08:00
Max Howell 5cd927b8b5 Some Cleanup 2011-03-12 11:55:03 -08:00
Max Howell 9afc85ad33 Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00
Jamie Macey d778aa6912 fix warnings: ambiguous splat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:54 -07:00
Jamie Macey 0c78126674 fix warnings: splat is redundant for puts
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 14:50:18 -07:00
Michael Dippery 091859fe4d brew log should show complete Git log if no formulae are specified
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30 07:57:42 -07:00
Adam Vandenberg b0ddda02d0 All vcs strategies support cached_download 2010-10-25 07:34:53 -07:00
Adam Vandenberg 3ca30d2d5b Add remove --force 2010-10-17 17:52:10 -07:00
Adam Vandenberg 55152f0be4 remove - show message when multiple versions exist 2010-10-17 17:40:54 -07:00
Kevin Ballard 568e89facd Consider outdated kegs in brew uses --installed
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-07 10:17:23 -07:00
Adam Vandenberg 98a9225dd5 Tweak display of missing sha 2010-10-06 08:02:17 -07:00
Adam Vandenberg c946f1f1ab add Xcode version to brew --config 2010-10-01 21:08:42 -07:00
Tianyi Cui 69e263cb95 brew-log accept git log options & multiple brews 2010-10-01 20:29:33 -07:00
Adam Vandenberg 1c323a7015 Fix brew edit foo 2010-09-30 06:47:19 -07:00
Adam Vandenberg bfd2ab0f1b Use %w quoting in ENV list 2010-09-29 22:01:17 -07:00
Adam Vandenberg eedaa0d2f0 Tweak unknown command message 2010-09-29 22:01:08 -07:00
Adam Vandenberg fdb5b41739 refactor compiler messages 2010-09-29 21:52:55 -07:00
Adam Vandenberg 9793d4096a Bump Xcode recommendation to 3.2.3 2010-09-07 13:23:43 -07:00
Adam Vandenberg 29c2327ba8 Add ruby target to --config 2010-09-06 09:30:34 -07:00
Adam Vandenberg 1e130479aa Remove HOMEBREW_CACHE from "brew --config"
HOMEBREW_CACHE isn't really helpful in diagnosing problems, and some
people don't like their username / home folder going into bug reports
on the web, so let's take it out.
2010-08-23 20:57:49 -07:00
Adam Vandenberg 42cced0207 Tweak 'report error' message. 2010-08-15 15:20:24 -07:00
Adam Vandenberg bed8867a97 Add 'brew deps --all' 2010-08-13 09:45:27 -07:00
Adam Vandenberg 7d4122e095 Add "brew uses --installed"
Passing --installed will limit the list to formulae that you have installed.
Documented this and "brew deps --1" which limits the dependency list to
one level down (direct dependencies).
2010-08-11 20:54:29 -07:00
Adam Vandenberg 238a3ba5ec Fix uses/deps for Leopard 2010-08-11 20:43:31 -07:00
Adam Vandenberg 408ec8e293 Add shortcut 'brew dr'. 2010-08-09 21:03:02 -07:00
Adam Vandenberg 9313c3ce0d Resolve aliases in 'brew edit'. 2010-08-07 22:15:29 -07:00
Adam Vandenberg 51018487d9 0.7 Remove deprecated make command 2010-08-07 18:08:54 -07:00
Adam Vandenberg 0bf7b75255 ARGV - rename method that conflicts with optparse
optparse adds an "options" method to ARGV, and so does Homebrew.
Rename this method (and remove optparse blocking script) so that
Homebrew plays nicer with external Ruby software.

This fixes the issue where "gem install thin" would break
"brew server", for instance.
2010-08-07 18:08:51 -07:00
Adam Vandenberg 477b59fe3a add URLs to brew info 2010-08-07 18:08:49 -07:00
Adam Vandenberg 7a4984c3b6 Fix brew info 2010-08-07 18:08:49 -07:00
Max Howell c6ce36300a Significantly simpler brew uses and brew deps
Partly simpler because the output is less pretty. But I think the output is
now more useful for other tools. And comma separated lists aren't particularly
human-readable IMO either.
2010-08-07 18:08:49 -07:00
Adam Vandenberg ebd958b3bf Show changed examples on update [telemachus]
* Also move updater output into the class itself
2010-08-07 18:08:48 -07:00
Martin Kühl 2e8d07b98b Automatically enable external brew commands.
* Add path to external command examples to PATH.
* Only add them to PATH from inside Homebrew.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Move external commands path down near check
2010-08-07 18:08:48 -07:00
Adam Vandenberg d458df709d Add name to brew info url and remove external script 2010-07-29 08:40:22 -07:00
Adam Vandenberg b460166baf Fix brew info --all 2010-07-25 11:26:00 -07:00
Adam Vandenberg c18d952c4c brew deps --1 does not recurse 2010-07-21 09:09:15 -07:00
Max Howell 12db10032c brew.h info takes a formula parameter rather than a string
* Preference is for commands to take instantiated formulae as parameters
  rather than formula names, so alias resolution can be centralized.
2010-07-18 13:52:01 -07:00
Kyle Fuller 8011f97f31 When outputting a brew install -vd insert the formula name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-14 07:19:03 -07:00
Adam Vandenberg a22bf17857 Add command "brew --env"
"brew --env" will set up a build environment and then dump certain ENV
variables (CC, CXX, LD, CFLAGS, CXXFLAGS, MAKEFLAGS).

If any of CC, CXX, LD are symlinks, now also output the target compiler.
(Typically these will be symlinks from eg /usr/bin/cc to /usr/bin/gcc-4.2).

This is a diagnostic command which may be merged into --config, turned
into an external command, or removed if it doesn't turn out to be useful.
2010-07-13 14:20:52 -07:00
Adam Vandenberg f09cccd340 Remove un-needed 'unless' in brew update 2010-07-08 22:41:51 -07:00
Adam Vandenberg 4ed3509c56 Move data into updater class 2010-07-03 23:22:51 -07:00
Adam Vandenberg e5e4eb71a4 Remove $PATH from --config and build dumps.
While it is useful to be able to see the user's path in bug reports, it is
perhaps slightly too intrusive to post this without the user's permission.

A path can have usernames or other project sensitive information, and several
Homebrew users were editing their bug reports to omit this information.

`brew doctor` will still report on the path issues that we typically care
about, so dropping automatic posting of PATH.
2010-07-02 09:34:40 -07:00
Adam Vandenberg 9670e0ebcc Extract "brew_install".
This was supposed to go in with the "brew-upgrade" external command,
but must have been lost in the merge.
2010-06-23 12:59:02 -07:00
Adam Vandenberg bd57166153 Add fink/macports support to 'brew search'. 2010-06-22 16:04:27 -07:00
Adam Vandenberg 66a98d9d23 Extract search_brews method 2010-06-17 11:42:24 -07:00
Adam Vandenberg 14946db06c Move code to find outdated brew list 2010-06-16 09:52:20 -07:00
Adam Vandenberg 8f0261a964 Reduce nesting in 'brew up'. 2010-06-15 21:48:33 -07:00