Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update manpage and completions. #15022

Merged
merged 1 commit into from Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions completions/bash/brew
Expand Up @@ -1619,6 +1619,22 @@ _brew_pin() {
__brew_complete_installed_formulae
}

_brew_postgresql_upgrade_database() {
local cur="${COMP_WORDS[COMP_CWORD]}"
case "${cur}" in
-*)
__brewcomp "
--debug
--help
--quiet
--verbose
"
return
;;
*) ;;
esac
}

_brew_postinstall() {
local cur="${COMP_WORDS[COMP_CWORD]}"
case "${cur}" in
Expand Down Expand Up @@ -2640,6 +2656,7 @@ _brew() {
options) _brew_options ;;
outdated) _brew_outdated ;;
pin) _brew_pin ;;
postgresql-upgrade-database) _brew_postgresql_upgrade_database ;;
postinstall) _brew_postinstall ;;
pr-automerge) _brew_pr_automerge ;;
pr-publish) _brew_pr_publish ;;
Expand Down
7 changes: 7 additions & 0 deletions completions/fish/brew.fish
Expand Up @@ -1122,6 +1122,13 @@ __fish_brew_complete_arg 'pin' -l verbose -d 'Make some output more verbose'
__fish_brew_complete_arg 'pin' -a '(__fish_brew_suggest_formulae_installed)'


__fish_brew_complete_cmd 'postgresql-upgrade-database' 'Upgrades the database for the `postgresql` formula'
__fish_brew_complete_arg 'postgresql-upgrade-database' -l debug -d 'Display any debugging information'
__fish_brew_complete_arg 'postgresql-upgrade-database' -l help -d 'Show this message'
__fish_brew_complete_arg 'postgresql-upgrade-database' -l quiet -d 'Make some output more quiet'
__fish_brew_complete_arg 'postgresql-upgrade-database' -l verbose -d 'Make some output more verbose'


__fish_brew_complete_cmd 'postinstall' 'Rerun the post-install steps for formula'
__fish_brew_complete_arg 'postinstall' -l debug -d 'Display any debugging information'
__fish_brew_complete_arg 'postinstall' -l help -d 'Show this message'
Expand Down
1 change: 1 addition & 0 deletions completions/internal_commands_list.txt
Expand Up @@ -67,6 +67,7 @@ nodenv-sync
options
outdated
pin
postgresql-upgrade-database
postinstall
pr-automerge
pr-publish
Expand Down
10 changes: 10 additions & 0 deletions completions/zsh/_brew
Expand Up @@ -188,6 +188,7 @@ __brew_internal_commands() {
'options:Show install options specific to formula'
'outdated:List installed casks and formulae that have an updated version available'
'pin:Pin the specified formula, preventing them from being upgraded when issuing the `brew upgrade` formula command'
'postgresql-upgrade-database:Upgrades the database for the `postgresql` formula'
'postinstall:Rerun the post-install steps for formula'
'pr-automerge:Find pull requests that can be automatically merged using `brew pr-publish`'
'pr-publish:Publish bottles for a pull request with GitHub Actions'
Expand Down Expand Up @@ -1375,6 +1376,15 @@ _brew_pin() {
'*::installed_formula:__brew_installed_formulae'
}

# brew postgresql-upgrade-database
_brew_postgresql_upgrade_database() {
_arguments \
'--debug[Display any debugging information]' \
'--help[Show this message]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]'
}

# brew postinstall
_brew_postinstall() {
_arguments \
Expand Down
4 changes: 4 additions & 0 deletions docs/Manpage.md
Expand Up @@ -517,6 +517,10 @@ information is displayed in interactive shells, and suppressed otherwise.
Pin the specified *`formula`*, preventing them from being upgraded when
issuing the `brew upgrade` *`formula`* command. See also `unpin`.

### `postgresql-upgrade-database`

Upgrades the database for the `postgresql` formula.

### `postinstall` *`installed_formula`* [...]

Rerun the post-install steps for *`formula`*.
Expand Down
3 changes: 3 additions & 0 deletions manpages/brew.1
Expand Up @@ -719,6 +719,9 @@ Also include outdated casks including those with \fBauto_updates true\fR\.
.SS "\fBpin\fR \fIinstalled_formula\fR [\.\.\.]"
Pin the specified \fIformula\fR, preventing them from being upgraded when issuing the \fBbrew upgrade\fR \fIformula\fR command\. See also \fBunpin\fR\.
.
.SS "\fBpostgresql\-upgrade\-database\fR"
Upgrades the database for the \fBpostgresql\fR formula\.
.
.SS "\fBpostinstall\fR \fIinstalled_formula\fR [\.\.\.]"
Rerun the post\-install steps for \fIformula\fR\.
.
Expand Down