cli/args: add new brew leaves args to rbi file

Also update the manpages with the new `brew leaves` options.
This commit is contained in:
Rylan Polster 2021-05-12 11:48:09 -04:00
parent dd94c4a550
commit 04ac61924b
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
6 changed files with 27 additions and 2 deletions

View File

@ -105,6 +105,12 @@ module Homebrew
sig { returns(T::Boolean) } sig { returns(T::Boolean) }
def installed?; end def installed?; end
sig { returns(T::Boolean) }
def installed_on_request?; end
sig { returns(T::Boolean) }
def installed_as_dependency?; end
sig { returns(T::Boolean) } sig { returns(T::Boolean) }
def all?; end def all?; end

View File

@ -1170,6 +1170,8 @@ _brew_leaves() {
__brewcomp " __brewcomp "
--debug --debug
--help --help
--installed-as-dependency
--installed-on-request
--quiet --quiet
--verbose --verbose
" "

View File

@ -845,6 +845,8 @@ __fish_brew_complete_arg 'irb' -l verbose -d 'Make some output more verbose'
__fish_brew_complete_cmd 'leaves' 'List installed formulae that are not dependencies of another installed formula' __fish_brew_complete_cmd 'leaves' 'List installed formulae that are not dependencies of another installed formula'
__fish_brew_complete_arg 'leaves' -l debug -d 'Display any debugging information' __fish_brew_complete_arg 'leaves' -l debug -d 'Display any debugging information'
__fish_brew_complete_arg 'leaves' -l help -d 'Show this message' __fish_brew_complete_arg 'leaves' -l help -d 'Show this message'
__fish_brew_complete_arg 'leaves' -l installed-as-dependency -d 'Only list leaves that were installed as dependencies'
__fish_brew_complete_arg 'leaves' -l installed-on-request -d 'Only list leaves that were manually installed'
__fish_brew_complete_arg 'leaves' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'leaves' -l quiet -d 'Make some output more quiet'
__fish_brew_complete_arg 'leaves' -l verbose -d 'Make some output more verbose' __fish_brew_complete_arg 'leaves' -l verbose -d 'Make some output more verbose'

View File

@ -1037,6 +1037,8 @@ _brew_leaves() {
_arguments \ _arguments \
'--debug[Display any debugging information]' \ '--debug[Display any debugging information]' \
'--help[Show this message]' \ '--help[Show this message]' \
'(--installed-on-request)--installed-as-dependency[Only list leaves that were installed as dependencies]' \
'(--installed-as-dependency)--installed-on-request[Only list leaves that were manually installed]' \
'--quiet[Make some output more quiet]' \ '--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' '--verbose[Make some output more verbose]'
} }

View File

@ -313,10 +313,15 @@ the installed formulae or, every 30 days, for all formulae.
* `--skip-cask-deps`: * `--skip-cask-deps`:
Skip installing cask dependencies. Skip installing cask dependencies.
### `leaves` ### `leaves` [*`--installed-on-request`*] [*`--installed-as-dependency`*]
List installed formulae that are not dependencies of another installed formula. List installed formulae that are not dependencies of another installed formula.
* `-r`, `--installed-on-request`:
Only list leaves that were manually installed.
* `-p`, `--installed-as-dependency`:
Only list leaves that were installed as dependencies.
### `link`, `ln` [*`options`*] *`installed_formula`* [...] ### `link`, `ln` [*`options`*] *`installed_formula`* [...]
Symlink all of *`formula`*'s installed files into Homebrew's prefix. This Symlink all of *`formula`*'s installed files into Homebrew's prefix. This

View File

@ -424,9 +424,17 @@ Disable/enable quarantining of downloads (default: enabled)\.
\fB\-\-skip\-cask\-deps\fR \fB\-\-skip\-cask\-deps\fR
Skip installing cask dependencies\. Skip installing cask dependencies\.
. .
.SS "\fBleaves\fR" .SS "\fBleaves\fR [\fI\-\-installed\-on\-request\fR] [\fI\-\-installed\-as\-dependency\fR]"
List installed formulae that are not dependencies of another installed formula\. List installed formulae that are not dependencies of another installed formula\.
. .
.TP
\fB\-r\fR, \fB\-\-installed\-on\-request\fR
Only list leaves that were manually installed\.
.
.TP
\fB\-p\fR, \fB\-\-installed\-as\-dependency\fR
Only list leaves that were installed as dependencies\.
.
.SS "\fBlink\fR, \fBln\fR [\fIoptions\fR] \fIinstalled_formula\fR [\.\.\.]" .SS "\fBlink\fR, \fBln\fR [\fIoptions\fR] \fIinstalled_formula\fR [\.\.\.]"
Symlink all of \fIformula\fR\'s installed files into Homebrew\'s prefix\. This is done automatically when you install formulae but can be useful for DIY installations\. Symlink all of \fIformula\fR\'s installed files into Homebrew\'s prefix\. This is done automatically when you install formulae but can be useful for DIY installations\.
. .