98 Commits

Author SHA1 Message Date
Masaki Muranaka
176e5ab72c Add an option "--root_url=" to bottle command.
Closes Homebrew/homebrew#29081.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-11 15:33:14 -07:00
Jack Nagel
762b8d1f16 Restore bash completion for --config 2014-05-01 16:40:55 -05:00
Adam Vandenberg
d4b0599a86 --config -> config 2014-04-30 19:09:29 -07:00
Jack Nagel
99c275d03b Remove slow tab completion for brew tap
This requires hitting the network, which makes the first invocation
slow. The results are inaccurate as it only pulls down the first page of
results. It is also prone to false-positives.

A better implementation is welcome, but in the years since I wrote this
code I can't think of a single time where I found it useful.
2014-04-24 21:42:15 -05:00
Jack Nagel
c466b20591 Fix tap completion when there aren't any taps 2014-04-24 21:36:59 -05:00
Jack Nagel
3f10327c0e Update bash completion for new tap format 2014-04-24 17:24:27 -05:00
Jack Nagel
47d24c461c Do path and string manipulation in pure bash 2014-04-14 22:36:40 -05:00
Jack Nagel
76b0140af5 Aliases don't have .rb extensions, so no need to remove them 2014-04-14 22:36:40 -05:00
Adam Vandenberg
7544d4856d add linkapps completion 2014-04-06 14:06:03 -07:00
Jack Nagel
ca786e7054 Add bash completion for brew bottle 2014-03-29 22:26:03 -05:00
Jack Nagel
d441d7b97f Update option completion 2014-03-15 10:16:22 -05:00
Jaime Marquínez Ferrándiz
4c3c4ac012 Add brew info --json=v1 to the bash completion script
Closes Homebrew/homebrew#27166.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-04 20:12:58 -08:00
Adam Vandenberg
150b9c9817 add options to fetch completion 2014-03-04 18:36:02 -08:00
Steven Peters
b524943226 install: add --only-dependencies option
The traditional approach to installing the dependencies of a formula is
the following:

  brew install `brew deps formula`

This approach ignores any options that are specified in the parent
formula. This pull request adds a --only-dependencies option to brew
install that installs the dependencies of a formula with optional flags,
but returns before installing the parent formula.

Closes Homebrew/homebrew#25272.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-19 16:43:42 -06:00
Osman Currim
b6f8649496 Add bash completion support for "brew switch"
First autocompletes on the names of installed packages and then
autocompletes on available versions for that specific package

Closes Homebrew/homebrew#25051.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-12 19:08:23 -06:00
Jack Nagel
faa77e8283 Remove --use-gcc and friends from completion scripts 2013-11-03 11:48:09 -06:00
Adam Vandenberg
d9f327083b add unlink apps to manpage and completion 2013-10-29 21:07:21 -07:00
Adam Vandenberg
fa0872a42c brew commands
Shows a list of built-in commands (but not shortcuts) and searches
for any external commands on the path.

Closes Homebrew/homebrew#22509.
2013-09-17 06:44:25 -07:00
Greg Sieranski
1abb8cdf81 adding reinstall to bash completion
Closes Homebrew/homebrew#22051.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-08-21 20:25:15 +02:00
Adam Vandenberg
3128931238 update brew search completion 2013-08-17 08:56:20 -07:00
Adam Vandenberg
6a6b319a8b update search bash completion 2013-08-06 16:01:28 -07:00
Adam Vandenberg
7f9e4e11a3 Update fetch bash completion
Also complete --devel and the formula's install options.
2013-06-12 15:58:12 -07:00
Adam Vandenberg
0e7d47332c Add brew search --debian <f> 2013-05-27 17:32:27 -07:00
Jack Nagel
d3b9367cbb Fix completion of install options without formula
Fixes Homebrew/homebrew#20084.
2013-05-25 18:28:54 -05:00
Jaime Marquínez Ferrándiz
0244040825 brew_bash_completion: complete --force for brew link
Closes Homebrew/homebrew#19828.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-15 06:38:09 -07:00
Jack Nagel
0bfcad4cd3 completion: avoid unnecessary brew invocations 2013-04-30 01:24:11 -05:00
Robson Peixoto
da9078aa51 Add tap --repair to bash completion script
Closes Homebrew/homebrew#19113.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-11 02:08:30 -05:00
Jaime Marquínez Ferrándiz
249b777684 Fix typo for pin command in bash_completion
Closes Homebrew/homebrew#18849.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-30 16:22:55 -07:00
Simon Sigurdhsson
f8a88b5f28 brew-pin: prevent selected formulae from upgrade.
* Added `pin` et. al. to manpage.
* Added `brew pin` to `brew.1` * Added `brew unpin` to `brew.1`
* Added `brew list --pinned` to `brew.1`
* Added information about frozen formulae to `brew upgrade` in `brew.1`
* Added `pin` et.al. to completion scripts.
* Unpin formulae when uninstalling them
* Unpin and re-pin formulae when upgrading (avoids stale symlink)

References Homebrew/homebrew#18386.
Closes Homebrew/homebrew#18515.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-30 19:50:47 +00:00
Mike McQuaid
4a281cd5cf Rename Library/Contributions/cmds -> cmd. 2013-02-18 10:42:44 +00:00
Adam Vandenberg
6a747a1420 Add 'instal' to completions 2013-01-29 11:13:23 -08:00
Jack Nagel
aaf2a397f0 Document some recently added options 2012-11-13 16:56:49 -06:00
Jack Nagel
6c4c37a01f bash completion for doctor checks 2012-11-13 16:49:43 -06:00
Misty De Meo
6542b22677 brew-test-bot: move html and css into subdirectory
Also updates the bash-completion to ignore subdirectories, rather than
specific filename patterns.
2012-07-18 08:25:07 -05:00
Misty De Meo
615c15937e bash-completion: hide brew-bot support files
Hides files with the extensions ".css" and ".erb" to ensure that the
brew-bot's support files don't show up in tab-completion.
2012-07-17 23:29:28 -05:00
Jack Nagel
d4a37c673e Restore completion for "link" and "ln"
Commit 3b5d7939d9a660a83e29a86e6bab234f3e9f2dcb added completion for
`brew link` options, but disabled completion of the actual command
itself.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 02:41:12 -05:00
Adam Vandenberg
e0b8531bc7 Add completions for brew link 2012-07-11 20:08:09 -07:00
Jack Nagel
ec0a6ee251 Completion for "brew missing"
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-13 08:14:25 -05:00
Jack Nagel
644af3696b Use "legacy" search API when completing tap names
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-12 11:58:48 -05:00
Misty De Meo
7af4622b0f Replace /usr/bin/ruby with full Framework path
Rationale: some users insist on replacing the /usr/bin/ruby symlink
to point to another ruby on their system, which may break homebrew.
Use the full Framework path instead, which is less likely to be tampered with.

This also reorganizes the brew --config checks to reflect the different path.

Fixes Homebrew/homebrew#12009.

Closes Homebrew/homebrew#12333.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-01 09:24:25 -05:00
Jack Nagel
7706e1210f Remove "__brew_ps1" function from completion
This was probably silly and I'm probably the only person that ever used
it. I still do, actually, but it's not really a completion function,
it's simple enough to just stick in a shell startup script, and removing
it makes the completion script usable under the new dynamic loading
scheme provided by bash-completion 1.99+.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29 20:11:00 -05:00
Jack Nagel
53481dc14a Tab completion for brew tap
Using an inline Ruby script we can hit the GitHub API and look for
repositories that match the tap naming scheme. The results are cached
for the duration of the current shell session, so going over the network
is a once-per-shell-session cost.

There are a few false positives, but not much we can do about that at
this point, as taps do not have to be in the fork network of any
specific repository.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23 22:42:43 -05:00
Mike McQuaid
e33937a1e3 Rename external commands directory from examples.
Fixes Homebrew/homebrew#10829.
2012-03-18 15:34:41 +13:00
Jack Nagel
2ed0240cb1 Tab completion for tapped formulae
So you can do e.g.

    $ brew install adamv<TAB>
    Display all 106 possibilities? (y or n)
    $ brew install adamv/alt/openss<TAB>
    adamv/alt/openssh     adamv/alt/openssl098  adamv/alt/openssl100

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-16 19:18:58 -05:00
Jack Nagel
ee0041f290 Appease the masses
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-16 19:18:54 -05:00
Jack Nagel
bbb212f41e Bash completion for brew untap
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-16 16:52:35 -05:00
Jack Nagel
ba69e17073 Refactor the bash completion script
The script was lacking structure and had grown a number of one-off hacks
that would be better as reusable functions. So,

 - give each subcommand that has completions it's own function
 - move completion of formulae, installed brews, and outdated brews into
   reusable functions
 - introduce a general __brewcomp() function that takes a string of tab,
   space, and/or newline separated items and converts all seperators to
   newlines, and then generates a reply with compgen().

These changes should allow for easier addition of new features in the
future.

As a bonus, completion for `brew log` will include git-log options if
the git completion script is also loaded.

_brew_to_completion() is kept around for compatiblity.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25 23:04:08 -06:00
Jack Nagel
7423b79f3a Complete options for brew -S
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-08 13:24:35 -06:00
Jack Nagel
f3f04e595d versions: enable '--compact' output
This will be useful for shell tab completion when something like `brew
install <formula> --version <version>` is implemented.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06 14:51:15 -06:00
Jack Nagel
3f76af69d3 completion: audit takes formula arguments
- Also remove `--strict` completion since that option was removed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-11 01:49:47 -06:00