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:
parent
dd94c4a550
commit
04ac61924b
@ -105,6 +105,12 @@ module Homebrew
|
||||
sig { returns(T::Boolean) }
|
||||
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) }
|
||||
def all?; end
|
||||
|
||||
|
||||
@ -1170,6 +1170,8 @@ _brew_leaves() {
|
||||
__brewcomp "
|
||||
--debug
|
||||
--help
|
||||
--installed-as-dependency
|
||||
--installed-on-request
|
||||
--quiet
|
||||
--verbose
|
||||
"
|
||||
|
||||
@ -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_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 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 verbose -d 'Make some output more verbose'
|
||||
|
||||
|
||||
@ -1037,6 +1037,8 @@ _brew_leaves() {
|
||||
_arguments \
|
||||
'--debug[Display any debugging information]' \
|
||||
'--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]' \
|
||||
'--verbose[Make some output more verbose]'
|
||||
}
|
||||
|
||||
@ -313,10 +313,15 @@ the installed formulae or, every 30 days, for all formulae.
|
||||
* `--skip-cask-deps`:
|
||||
Skip installing cask dependencies.
|
||||
|
||||
### `leaves`
|
||||
### `leaves` [*`--installed-on-request`*] [*`--installed-as-dependency`*]
|
||||
|
||||
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`* [...]
|
||||
|
||||
Symlink all of *`formula`*'s installed files into Homebrew's prefix. This
|
||||
|
||||
@ -424,9 +424,17 @@ Disable/enable quarantining of downloads (default: enabled)\.
|
||||
\fB\-\-skip\-cask\-deps\fR
|
||||
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\.
|
||||
.
|
||||
.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 [\.\.\.]"
|
||||
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\.
|
||||
.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user