diff --git a/completions/bash/brew b/completions/bash/brew index 9179a06f0d..b887c28c24 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -2870,6 +2870,26 @@ _brew_update_maintainers() { esac } +_brew_update_perl_resources() { + local cur="${COMP_WORDS[COMP_CWORD]}" + case "${cur}" in + -*) + __brewcomp " + --debug + --help + --ignore-errors + --print-only + --quiet + --silent + --verbose + " + return + ;; + *) ;; + esac + __brew_complete_formulae +} + _brew_update_python_resources() { local cur="${COMP_WORDS[COMP_CWORD]}" case "${cur}" in @@ -3258,6 +3278,7 @@ _brew() { update-if-needed) _brew_update_if_needed ;; update-license-data) _brew_update_license_data ;; update-maintainers) _brew_update_maintainers ;; + update-perl-resources) _brew_update_perl_resources ;; update-python-resources) _brew_update_python_resources ;; update-report) _brew_update_report ;; update-reset) _brew_update_reset ;; diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 62e2895a48..23c358b7ae 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -1843,6 +1843,17 @@ __fish_brew_complete_arg 'update-maintainers' -l quiet -d 'Make some output more __fish_brew_complete_arg 'update-maintainers' -l verbose -d 'Make some output more verbose' +__fish_brew_complete_cmd 'update-perl-resources' 'Update versions for CPAN resource blocks in formula' +__fish_brew_complete_arg 'update-perl-resources' -l debug -d 'Display any debugging information' +__fish_brew_complete_arg 'update-perl-resources' -l help -d 'Show this message' +__fish_brew_complete_arg 'update-perl-resources' -l ignore-errors -d 'Continue processing even if some resources can\'t be resolved' +__fish_brew_complete_arg 'update-perl-resources' -l print-only -d 'Print the updated resource blocks instead of changing formula' +__fish_brew_complete_arg 'update-perl-resources' -l quiet -d 'Make some output more quiet' +__fish_brew_complete_arg 'update-perl-resources' -l silent -d 'Suppress any output' +__fish_brew_complete_arg 'update-perl-resources' -l verbose -d 'Make some output more verbose' +__fish_brew_complete_arg 'update-perl-resources' -a '(__fish_brew_suggest_formulae_all)' + + __fish_brew_complete_cmd 'update-python-resources' 'Update versions for PyPI resource blocks in formula' __fish_brew_complete_arg 'update-python-resources' -l debug -d 'Display any debugging information' __fish_brew_complete_arg 'update-python-resources' -l exclude-packages -d 'Exclude these packages when finding resources' diff --git a/completions/internal_commands_list.txt b/completions/internal_commands_list.txt index dbdc755da3..5790791bce 100644 --- a/completions/internal_commands_list.txt +++ b/completions/internal_commands_list.txt @@ -118,6 +118,7 @@ update update-if-needed update-license-data update-maintainers +update-perl-resources update-python-resources update-reset update-sponsors diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 76feec1dd2..5d0413c957 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -236,6 +236,7 @@ __brew_internal_commands() { 'update-if-needed:Runs `brew update --auto-update` only if needed' 'update-license-data:Update SPDX license data in the Homebrew repository' 'update-maintainers:Update the list of maintainers in the `Homebrew/brew` README' + 'update-perl-resources:Update versions for CPAN resource blocks in formula' 'update-python-resources:Update versions for PyPI resource blocks in formula' 'update-report:The Ruby implementation of `brew update`' 'update-reset:Fetch and reset Homebrew and all tap repositories (or any specified repository) using `git`(1) to their latest `origin/HEAD`' @@ -2270,6 +2271,20 @@ _brew_update_maintainers() { '--verbose[Make some output more verbose]' } +# brew update-perl-resources +_brew_update_perl_resources() { + _arguments \ + '--debug[Display any debugging information]' \ + '--help[Show this message]' \ + '--ignore-errors[Continue processing even if some resources can'\''t be resolved]' \ + '--print-only[Print the updated resource blocks instead of changing formula]' \ + '--quiet[Make some output more quiet]' \ + '--silent[Suppress any output]' \ + '--verbose[Make some output more verbose]' \ + - formula \ + '*:formula:__brew_formulae' +} + # brew update-python-resources _brew_update_python_resources() { _arguments \ diff --git a/docs/Manpage.md b/docs/Manpage.md index 77e73da320..138410b99e 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -3320,6 +3320,22 @@ Update SPDX license data in the Homebrew repository. Update the list of maintainers in the `Homebrew/brew` README. +### `update-perl-resources` \[*`options`*\] *`formula`* \[...\] + +Update versions for CPAN resource blocks in *`formula`*. + +`-p`, `--print-only` + +: Print the updated resource blocks instead of changing *`formula`*. + +`-s`, `--silent` + +: Suppress any output. + +`--ignore-errors` + +: Continue processing even if some resources can't be resolved. + ### `update-python-resources` \[*`options`*\] *`formula`* \[...\] Update versions for PyPI resource blocks in *`formula`*. diff --git a/manpages/brew.1 b/manpages/brew.1 index 7a21b0b9ef..1d22fcab7a 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -2111,6 +2111,17 @@ Overwrite the destination directory if it already exists\. Update SPDX license data in the Homebrew repository\. .SS "\fBupdate\-maintainers\fP" Update the list of maintainers in the \fBHomebrew/brew\fP README\. +.SS "\fBupdate\-perl\-resources\fP \fR[\fIoptions\fP] \fIformula\fP \fR[\.\.\.]" +Update versions for CPAN resource blocks in \fIformula\fP\&\. +.TP +\fB\-p\fP, \fB\-\-print\-only\fP +Print the updated resource blocks instead of changing \fIformula\fP\&\. +.TP +\fB\-s\fP, \fB\-\-silent\fP +Suppress any output\. +.TP +\fB\-\-ignore\-errors\fP +Continue processing even if some resources can\[u2019]t be resolved\. .SS "\fBupdate\-python\-resources\fP \fR[\fIoptions\fP] \fIformula\fP \fR[\.\.\.]" Update versions for PyPI resource blocks in \fIformula\fP\&\. .TP