Commit Graph
162 Commits
Author SHA1 Message Date
Max Howell 73c7a3aa1b Optimise/simplify brew help
Be more useful by being more concise. I referenced dozens of other mature commands’ usage to figure out what to do here.

Also separated out the help into its own command for consistency.
2011-03-13 12:54:30 +00:00
Adam Vandenberg cd5098b9a3 Add 'brew grep' external command. 2011-03-12 13:26:45 -08:00
Adam Vandenberg fb85fbc6b6 'brew fetch' now an official command 2011-03-12 11:55:11 -08:00
Adam Vandenberg 485a6ee505 'brew options' now an official command 2011-03-12 11:55:10 -08:00
Adam Vandenberg 6f2e80e184 'brew test' now an official command 2011-03-12 11:55:10 -08:00
Adam Vandenberg 2ca7bb0228 Add brew options --compact to manpage 2011-03-12 11:55:07 -08:00
Stephen Allred c19b32dfc4 Added --use-gcc flag.
This allows you to use llvm as your default compiler and keep the cc symlink
pointed at llvm, while allowing you to build forumla that requires the gcc.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12 11:55:06 -08:00
Max Howell 5cd927b8b5 Some Cleanup 2011-03-12 11:55:03 -08:00
Adam Vandenberg faaa1ad4b1 Move brew-audit to cmds 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
Martin Kühl 5d7b9eec74 New options: brew graph
Accept any options that `brew deps` accepts.
Default to `--all` to preserve previous behaviour.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-20 18:04:53 -08:00
Adam Vandenberg d042388370 brew-audit - check formula versions 2011-02-20 15:03:17 -08:00
George Kulakowski d12f25160d Clean up zsh completion
1. Fix a misspelled variable to avoid shell namespace pollution
2. Remove a bogus completion (the 'brew xo' one)
3. Add missing tab completion code for
   - Several arguments/commands (options, --cellar etc.)
   - Aliases (e.g. home and homepage)
   - 'brew edit' complete to all formulae, not just installed ones

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-13 19:45:41 -08:00
Justin Hileman 3c25722e51 Handle default install --options
i.e. `--force --debug --use-llvm --ignore-dependencies --HEAD`

Additionally:

 * Use a cleaner `if` block in install options completion case.
 * De-dupe options for subsequent completion (e.g. stop offering --foo once
   --foo option has been used).

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-09 17:44:01 -08:00
Adam Vandenberg b0ae301c5a brew --compact 2011-02-04 16:52:46 -08:00
Justin Hileman 73e955fcc5 bash completion: --options for brew install foo
To trigger the option autocompletion, type:

    brew install foo --[tab][tab]

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-04 16:46:04 -08:00
Adam Vandenberg 07855aa8ce Man typos. Fixes #3799 2011-01-02 17:03:41 -08:00
Mike McQuaid f6d8d30936 brew-pull: Only append "Closes" to last commit. 2011-01-02 11:42:44 +00:00
Mike McQuaid c9d1e1bfff brew-pull: Handle multipatch pull requests better. 2011-01-02 11:38:22 +00:00
Mike McQuaid fff7e1ca18 brew-pull: only use matched string for url. 2010-12-30 16:30:50 +00:00
Mike McQuaid 1172dc2a5f Improve brew pull to close issues. 2010-12-30 15:27:07 +00:00
Adam Vandenberg e6c9c112b0 Fix typos in man page 2010-12-26 10:31:10 -08:00
Gabe Berke-Williams 641369ce8d Add missing and server to ZSH completion
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-12-20 12:16:29 -08:00
Mike McQuaid 0f0844d20f Add missing newline to brew bottle. 2010-12-02 01:13:41 +00:00
Mike McQuaid 883f1e664f Fix brew pull looking at uncommitted work. 2010-12-02 00:10:50 +00:00
Mike McQuaid af1ed49968 Add suffix for bottles to avoid cache confusion. 2010-12-01 23:08:12 +00:00
Mike McQuaid 09b2abe05d Improve reasoning in brew bottle for using gzip. 2010-12-01 23:08:12 +00:00
Mike McQuaid a5e0e0d700 Fix spaced paths with brew bottle.
We shouldn't ever really have these but better to be safe than sorry.
2010-12-01 23:04:33 +00:00
Mike McQuaid 5ca98214ed Change tabs to spaces in brew bottle. 2010-12-01 23:01:54 +00:00
Mike McQuaid d688fa310a Add initial brew bottle implementation. 2010-11-24 09:38:09 +00:00
Lee Packham 9cbd9ad220 Make the regex for URL checking more git friendly
* Urls for Git Commits need to be between 4-40 not 40.

For example:

https://github.com/mxcl/homebrew/commit/805a
https://github.com/mxcl/homebrew/commit/805

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-11-21 13:20:12 +00:00
Mike McQuaid 7d91506078 Don't count --install as a valid brew pull URL.
We were checking that at least one URL argument was added but
the --install parameter was also counted in that.
2010-11-21 10:33:14 +00:00
Mike McQuaid 0bb0cf396c Only try and install using git pull when formula. 2010-11-21 10:32:33 +00:00
Mike McQuaid 805afa14b8 Add brew pull for easy integration of user patches 2010-11-20 12:02:17 +00:00
Adam Vandenberg e4e3319cd0 Update man page
Move all documented "external commands" up with the resto f the commands,
as these will all be built-in commands after the next code re-org.
2010-11-07 07:36:34 -08:00
Adam Vandenberg 06294a82d1 Separate man page for brew-man
Also, revise main man page, and update brew-man command to handle
multiple input files.
2010-11-06 17:36:44 -07:00
Adam Vandenberg 071071ac1d brew-audit - check harder for commented cmake 2010-11-04 08:11:49 -07:00
Adam Vandenberg 3658418d3e Add proxy information to man page 2010-11-01 10:25:02 -07:00
Adam Vandenberg 5c0da94a0a Document brew install <url> 2010-10-30 14:23:11 -07:00
Adam Vandenberg 274758f677 brew-audit - check for combined make calls 2010-10-30 08:30:40 -07:00
Adam Vandenberg f391e837c7 brew-test - make ENV available to tests 2010-10-25 09:31:06 -07:00
Adam Vandenberg ae9b3ef59f brew-audit - add check for tabs.
Add a new mode "brew audit --warn" that performs stricter checks
that might not need to be fixed.

Currently this includes a check for using tabs instead of spaces
for indentation; Homebrew style is "2-space indentation."

Documented this new switch.
2010-10-21 07:53:37 -07:00
Adam Vandenberg bb32c7e688 Add link shortcut ln to doc 2010-10-17 17:52:21 -07:00
Adam Vandenberg 3ca30d2d5b Add remove --force 2010-10-17 17:52:10 -07:00
Adam Vandenberg 47e6cdbabf Document fetch --force 2010-10-13 07:17:23 -07:00
Adam Vandenberg 88e193f2c4 Document fetch --HEAD 2010-10-13 06:48:38 -07:00
Adam Vandenberg 1ea8e899f9 Document brew install --force --HEAD 2010-10-13 06:43:04 -07:00
Adam Vandenberg 9ffe2e9e2a brew-audit - don't complain about --HEAD options 2010-10-12 08:44:03 -07:00
Adam Vandenberg 9b8206f7c2 brew-audit - check for include? --HEAD 2010-10-08 20:12:11 -07:00
Adam Vandenberg fdc33e92f8 add test to completion 2010-10-07 20:27:12 -07:00