Merge pull request #13245 from boblail/lail/brew-update---quiet

Document the `--quiet` flag on `brew update`
This commit is contained in:
Mike McQuaid 2022-05-05 09:57:24 +01:00 committed by GitHub
commit 1c9f218e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#: --merge Use `git merge` to apply updates (rather than `git rebase`). #: --merge Use `git merge` to apply updates (rather than `git rebase`).
#: --preinstall Run on auto-updates (e.g. before `brew install`). Skips some slower steps. #: --preinstall Run on auto-updates (e.g. before `brew install`). Skips some slower steps.
#: -f, --force Always do a slower, full update check (even if unnecessary). #: -f, --force Always do a slower, full update check (even if unnecessary).
#: -q, --quiet Make some output more quiet
#: -v, --verbose Print the directories checked and `git` operations performed. #: -v, --verbose Print the directories checked and `git` operations performed.
#: -d, --debug Display a trace of all shell commands as they are executed. #: -d, --debug Display a trace of all shell commands as they are executed.
#: -h, --help Show this message. #: -h, --help Show this message.

View File

@ -200,6 +200,7 @@ describe Homebrew::Completions do
"--help" => "Show this message.", "--help" => "Show this message.",
"--merge" => "Use `git merge` to apply updates (rather than `git rebase`).", "--merge" => "Use `git merge` to apply updates (rather than `git rebase`).",
"--preinstall" => "Run on auto-updates (e.g. before `brew install`). Skips some slower steps.", "--preinstall" => "Run on auto-updates (e.g. before `brew install`). Skips some slower steps.",
"--quiet" => "Make some output more quiet",
"--verbose" => "Print the directories checked and `git` operations performed.", "--verbose" => "Print the directories checked and `git` operations performed.",
} }
expect(described_class.command_options("update")).to eq expected_options expect(described_class.command_options("update")).to eq expected_options
@ -281,6 +282,7 @@ describe Homebrew::Completions do
--help --help
--merge --merge
--preinstall --preinstall
--quiet
--verbose --verbose
" "
return return
@ -345,6 +347,7 @@ describe Homebrew::Completions do
'--help[Show this message]' \\ '--help[Show this message]' \\
'--merge[Use `git merge` to apply updates (rather than `git rebase`)]' \\ '--merge[Use `git merge` to apply updates (rather than `git rebase`)]' \\
'--preinstall[Run on auto-updates (e.g. before `brew install`). Skips some slower steps]' \\ '--preinstall[Run on auto-updates (e.g. before `brew install`). Skips some slower steps]' \\
'--quiet[Make some output more quiet]' \\
'--verbose[Print the directories checked and `git` operations performed]' '--verbose[Print the directories checked and `git` operations performed]'
} }
COMPLETION COMPLETION
@ -404,6 +407,7 @@ describe Homebrew::Completions do
__fish_brew_complete_arg 'update' -l help -d 'Show this message' __fish_brew_complete_arg 'update' -l help -d 'Show this message'
__fish_brew_complete_arg 'update' -l merge -d 'Use `git merge` to apply updates (rather than `git rebase`)' __fish_brew_complete_arg 'update' -l merge -d 'Use `git merge` to apply updates (rather than `git rebase`)'
__fish_brew_complete_arg 'update' -l preinstall -d 'Run on auto-updates (e.g. before `brew install`). Skips some slower steps' __fish_brew_complete_arg 'update' -l preinstall -d 'Run on auto-updates (e.g. before `brew install`). Skips some slower steps'
__fish_brew_complete_arg 'update' -l quiet -d 'Make some output more quiet'
__fish_brew_complete_arg 'update' -l verbose -d 'Print the directories checked and `git` operations performed' __fish_brew_complete_arg 'update' -l verbose -d 'Print the directories checked and `git` operations performed'
COMPLETION COMPLETION
end end