Merge pull request #11719 from nandahkrishna/commands
commands: remove `diy`, add `lc` alias for `livecheck`
This commit is contained in:
commit
83821cf4df
@ -21,13 +21,13 @@ module Commands
|
||||
"uninstal" => "uninstall",
|
||||
"rm" => "uninstall",
|
||||
"remove" => "uninstall",
|
||||
"configure" => "diy",
|
||||
"abv" => "info",
|
||||
"dr" => "doctor",
|
||||
"--repo" => "--repository",
|
||||
"environment" => "--env",
|
||||
"--config" => "config",
|
||||
"-v" => "--version",
|
||||
"lc" => "livecheck",
|
||||
"tc" => "typecheck",
|
||||
}.freeze
|
||||
|
||||
|
@ -1167,6 +1167,32 @@ _brew_irb() {
|
||||
esac
|
||||
}
|
||||
|
||||
_brew_lc() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "${cur}" in
|
||||
-*)
|
||||
__brewcomp "
|
||||
--all
|
||||
--cask
|
||||
--debug
|
||||
--formula
|
||||
--full-name
|
||||
--help
|
||||
--installed
|
||||
--json
|
||||
--newer-only
|
||||
--quiet
|
||||
--tap
|
||||
--verbose
|
||||
"
|
||||
return
|
||||
;;
|
||||
*)
|
||||
esac
|
||||
__brew_complete_formulae
|
||||
__brew_complete_casks
|
||||
}
|
||||
|
||||
_brew_leaves() {
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "${cur}" in
|
||||
@ -2433,6 +2459,7 @@ _brew() {
|
||||
install) _brew_install ;;
|
||||
install-bundler-gems) _brew_install_bundler_gems ;;
|
||||
irb) _brew_irb ;;
|
||||
lc) _brew_lc ;;
|
||||
leaves) _brew_leaves ;;
|
||||
link) _brew_link ;;
|
||||
linkage) _brew_linkage ;;
|
||||
|
@ -846,6 +846,23 @@ __fish_brew_complete_arg 'irb' -l quiet -d 'Make some output more quiet'
|
||||
__fish_brew_complete_arg 'irb' -l verbose -d 'Make some output more verbose'
|
||||
|
||||
|
||||
__fish_brew_complete_cmd 'lc' 'Check for newer versions of formulae and/or casks from upstream'
|
||||
__fish_brew_complete_arg 'lc' -l all -d 'Check all available formulae/casks'
|
||||
__fish_brew_complete_arg 'lc' -l cask -d 'Only check casks'
|
||||
__fish_brew_complete_arg 'lc' -l debug -d 'Display any debugging information'
|
||||
__fish_brew_complete_arg 'lc' -l formula -d 'Only check formulae'
|
||||
__fish_brew_complete_arg 'lc' -l full-name -d 'Print formulae/casks with fully-qualified names'
|
||||
__fish_brew_complete_arg 'lc' -l help -d 'Show this message'
|
||||
__fish_brew_complete_arg 'lc' -l installed -d 'Check formulae/casks that are currently installed'
|
||||
__fish_brew_complete_arg 'lc' -l json -d 'Output information in JSON format'
|
||||
__fish_brew_complete_arg 'lc' -l newer-only -d 'Show the latest version only if it\'s newer than the formula/cask'
|
||||
__fish_brew_complete_arg 'lc' -l quiet -d 'Suppress warnings, don\'t print a progress bar for JSON output'
|
||||
__fish_brew_complete_arg 'lc' -l tap -d 'Check formulae/casks within the given tap, specified as user`/`repo'
|
||||
__fish_brew_complete_arg 'lc' -l verbose -d 'Make some output more verbose'
|
||||
__fish_brew_complete_arg 'lc; and not __fish_seen_argument -l cask -l casks' -a '(__fish_brew_suggest_formulae_all)'
|
||||
__fish_brew_complete_arg 'lc; and not __fish_seen_argument -l formula -l formulae' -a '(__fish_brew_suggest_casks_all)'
|
||||
|
||||
|
||||
__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'
|
||||
|
@ -26,7 +26,6 @@ command
|
||||
commands
|
||||
completions
|
||||
config
|
||||
configure
|
||||
create
|
||||
deps
|
||||
desc
|
||||
@ -48,6 +47,7 @@ info
|
||||
install
|
||||
install-bundler-gems
|
||||
irb
|
||||
lc
|
||||
leaves
|
||||
link
|
||||
linkage
|
||||
|
@ -22,13 +22,13 @@ __brew_list_aliases() {
|
||||
uninstal uninstall
|
||||
rm uninstall
|
||||
remove uninstall
|
||||
configure diy
|
||||
abv info
|
||||
dr doctor
|
||||
'--repo' '--repository'
|
||||
environment '--env'
|
||||
'--config' config
|
||||
'-v' '--version'
|
||||
lc livecheck
|
||||
tc typecheck
|
||||
)
|
||||
echo "${aliases}"
|
||||
@ -1034,6 +1034,27 @@ _brew_irb() {
|
||||
'--verbose[Make some output more verbose]'
|
||||
}
|
||||
|
||||
# brew lc
|
||||
_brew_lc() {
|
||||
_arguments \
|
||||
'(--tap --installed)--all[Check all available formulae/casks]' \
|
||||
'(--json)--debug[Display any debugging information]' \
|
||||
'--full-name[Print formulae/casks with fully-qualified names]' \
|
||||
'--help[Show this message]' \
|
||||
'(--tap --all)--installed[Check formulae/casks that are currently installed]' \
|
||||
'(--debug)--json[Output information in JSON format]' \
|
||||
'--newer-only[Show the latest version only if it'\''s newer than the formula/cask]' \
|
||||
'--quiet[Suppress warnings, don'\''t print a progress bar for JSON output]' \
|
||||
'(--all --installed)--tap[Check formulae/casks within the given tap, specified as user`/`repo]' \
|
||||
'--verbose[Make some output more verbose]' \
|
||||
- formula \
|
||||
'(--cask)--formula[Only check formulae]' \
|
||||
'*::formula:__brew_formulae' \
|
||||
- cask \
|
||||
'(--formula)--cask[Only check casks]' \
|
||||
'*::cask:__brew_casks'
|
||||
}
|
||||
|
||||
# brew leaves
|
||||
_brew_leaves() {
|
||||
_arguments \
|
||||
|
@ -1131,7 +1131,7 @@ provided, check all kegs. Raises an error if run on uninstalled formulae.
|
||||
* `--cached`:
|
||||
Print the cached linkage values stored in `HOMEBREW_CACHE`, set by a previous `brew linkage` run.
|
||||
|
||||
### `livecheck` [*`options`*] [*`formula`*|*`cask`* ...]
|
||||
### `livecheck`, `lc` [*`options`*] [*`formula`*|*`cask`* ...]
|
||||
|
||||
Check for newer versions of formulae and/or casks from upstream.
|
||||
|
||||
|
@ -1588,7 +1588,7 @@ For every library that a keg references, print its dylib path followed by the bi
|
||||
\fB\-\-cached\fR
|
||||
Print the cached linkage values stored in \fBHOMEBREW_CACHE\fR, set by a previous \fBbrew linkage\fR run\.
|
||||
.
|
||||
.SS "\fBlivecheck\fR [\fIoptions\fR] [\fIformula\fR|\fIcask\fR \.\.\.]"
|
||||
.SS "\fBlivecheck\fR, \fBlc\fR [\fIoptions\fR] [\fIformula\fR|\fIcask\fR \.\.\.]"
|
||||
Check for newer versions of formulae and/or casks from upstream\.
|
||||
.
|
||||
.P
|
||||
|
Loading…
x
Reference in New Issue
Block a user