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",
|
"uninstal" => "uninstall",
|
||||||
"rm" => "uninstall",
|
"rm" => "uninstall",
|
||||||
"remove" => "uninstall",
|
"remove" => "uninstall",
|
||||||
"configure" => "diy",
|
|
||||||
"abv" => "info",
|
"abv" => "info",
|
||||||
"dr" => "doctor",
|
"dr" => "doctor",
|
||||||
"--repo" => "--repository",
|
"--repo" => "--repository",
|
||||||
"environment" => "--env",
|
"environment" => "--env",
|
||||||
"--config" => "config",
|
"--config" => "config",
|
||||||
"-v" => "--version",
|
"-v" => "--version",
|
||||||
|
"lc" => "livecheck",
|
||||||
"tc" => "typecheck",
|
"tc" => "typecheck",
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
|
@ -1167,6 +1167,32 @@ _brew_irb() {
|
|||||||
esac
|
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() {
|
_brew_leaves() {
|
||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
case "${cur}" in
|
case "${cur}" in
|
||||||
@ -2433,6 +2459,7 @@ _brew() {
|
|||||||
install) _brew_install ;;
|
install) _brew_install ;;
|
||||||
install-bundler-gems) _brew_install_bundler_gems ;;
|
install-bundler-gems) _brew_install_bundler_gems ;;
|
||||||
irb) _brew_irb ;;
|
irb) _brew_irb ;;
|
||||||
|
lc) _brew_lc ;;
|
||||||
leaves) _brew_leaves ;;
|
leaves) _brew_leaves ;;
|
||||||
link) _brew_link ;;
|
link) _brew_link ;;
|
||||||
linkage) _brew_linkage ;;
|
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_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_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'
|
||||||
|
@ -26,7 +26,6 @@ command
|
|||||||
commands
|
commands
|
||||||
completions
|
completions
|
||||||
config
|
config
|
||||||
configure
|
|
||||||
create
|
create
|
||||||
deps
|
deps
|
||||||
desc
|
desc
|
||||||
@ -48,6 +47,7 @@ info
|
|||||||
install
|
install
|
||||||
install-bundler-gems
|
install-bundler-gems
|
||||||
irb
|
irb
|
||||||
|
lc
|
||||||
leaves
|
leaves
|
||||||
link
|
link
|
||||||
linkage
|
linkage
|
||||||
|
@ -22,13 +22,13 @@ __brew_list_aliases() {
|
|||||||
uninstal uninstall
|
uninstal uninstall
|
||||||
rm uninstall
|
rm uninstall
|
||||||
remove uninstall
|
remove uninstall
|
||||||
configure diy
|
|
||||||
abv info
|
abv info
|
||||||
dr doctor
|
dr doctor
|
||||||
'--repo' '--repository'
|
'--repo' '--repository'
|
||||||
environment '--env'
|
environment '--env'
|
||||||
'--config' config
|
'--config' config
|
||||||
'-v' '--version'
|
'-v' '--version'
|
||||||
|
lc livecheck
|
||||||
tc typecheck
|
tc typecheck
|
||||||
)
|
)
|
||||||
echo "${aliases}"
|
echo "${aliases}"
|
||||||
@ -1034,6 +1034,27 @@ _brew_irb() {
|
|||||||
'--verbose[Make some output more verbose]'
|
'--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
|
||||||
_brew_leaves() {
|
_brew_leaves() {
|
||||||
_arguments \
|
_arguments \
|
||||||
|
@ -1131,7 +1131,7 @@ provided, check all kegs. Raises an error if run on uninstalled formulae.
|
|||||||
* `--cached`:
|
* `--cached`:
|
||||||
Print the cached linkage values stored in `HOMEBREW_CACHE`, set by a previous `brew linkage` run.
|
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.
|
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
|
\fB\-\-cached\fR
|
||||||
Print the cached linkage values stored in \fBHOMEBREW_CACHE\fR, set by a previous \fBbrew linkage\fR run\.
|
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\.
|
Check for newer versions of formulae and/or casks from upstream\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
|
Loading…
x
Reference in New Issue
Block a user