mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
bump-formula-pr: switch to install resource update dependencies
Also same feature for update-python-resources
This commit is contained in:
parent
7303d642dd
commit
216f571fff
@ -72,6 +72,8 @@ module Homebrew
|
|||||||
"or specified <version>."
|
"or specified <version>."
|
||||||
switch "-f", "--force",
|
switch "-f", "--force",
|
||||||
description: "Remove all mirrors if `--mirror` was not specified."
|
description: "Remove all mirrors if `--mirror` was not specified."
|
||||||
|
switch "--install-dependencies",
|
||||||
|
description: "Install missing dependencies required to update resources."
|
||||||
flag "--python-package-name=",
|
flag "--python-package-name=",
|
||||||
description: "Use the specified <package-name> when finding Python resources for <formula>. " \
|
description: "Use the specified <package-name> when finding Python resources for <formula>. " \
|
||||||
"If no package name is specified, it will be inferred from the formula's stable URL."
|
"If no package name is specified, it will be inferred from the formula's stable URL."
|
||||||
@ -329,6 +331,7 @@ module Homebrew
|
|||||||
package_name: args.python_package_name,
|
package_name: args.python_package_name,
|
||||||
extra_packages: args.python_extra_packages,
|
extra_packages: args.python_extra_packages,
|
||||||
exclude_packages: args.python_exclude_packages,
|
exclude_packages: args.python_exclude_packages,
|
||||||
|
install_dependencies: args.install_dependencies?,
|
||||||
silent: args.quiet?,
|
silent: args.quiet?,
|
||||||
ignore_non_pypi_packages: true
|
ignore_non_pypi_packages: true
|
||||||
end
|
end
|
||||||
|
@ -19,6 +19,8 @@ module Homebrew
|
|||||||
description: "Suppress any output."
|
description: "Suppress any output."
|
||||||
switch "--ignore-non-pypi-packages",
|
switch "--ignore-non-pypi-packages",
|
||||||
description: "Don't fail if <formula> is not a PyPI package."
|
description: "Don't fail if <formula> is not a PyPI package."
|
||||||
|
switch "--install-dependencies",
|
||||||
|
description: "Install missing dependencies required to update resources."
|
||||||
flag "--version=",
|
flag "--version=",
|
||||||
description: "Use the specified <version> when finding resources for <formula>. " \
|
description: "Use the specified <version> when finding resources for <formula>. " \
|
||||||
"If no version is specified, the current version for <formula> will be used."
|
"If no version is specified, the current version for <formula> will be used."
|
||||||
@ -43,6 +45,7 @@ module Homebrew
|
|||||||
package_name: args.package_name,
|
package_name: args.package_name,
|
||||||
extra_packages: args.extra_packages,
|
extra_packages: args.extra_packages,
|
||||||
exclude_packages: args.exclude_packages,
|
exclude_packages: args.exclude_packages,
|
||||||
|
install_dependencies: args.install_dependencies?,
|
||||||
print_only: args.print_only?,
|
print_only: args.print_only?,
|
||||||
silent: args.silent?,
|
silent: args.silent?,
|
||||||
verbose: args.verbose?,
|
verbose: args.verbose?,
|
||||||
|
@ -500,6 +500,7 @@ _brew_bump_formula_pr() {
|
|||||||
--force
|
--force
|
||||||
--fork-org
|
--fork-org
|
||||||
--help
|
--help
|
||||||
|
--install-dependencies
|
||||||
--message
|
--message
|
||||||
--mirror
|
--mirror
|
||||||
--no-audit
|
--no-audit
|
||||||
@ -2471,6 +2472,7 @@ _brew_update_python_resources() {
|
|||||||
--extra-packages
|
--extra-packages
|
||||||
--help
|
--help
|
||||||
--ignore-non-pypi-packages
|
--ignore-non-pypi-packages
|
||||||
|
--install-dependencies
|
||||||
--package-name
|
--package-name
|
||||||
--print-only
|
--print-only
|
||||||
--quiet
|
--quiet
|
||||||
|
@ -422,6 +422,7 @@ __fish_brew_complete_arg 'bump-formula-pr' -l dry-run -d 'Print what would be do
|
|||||||
__fish_brew_complete_arg 'bump-formula-pr' -l force -d 'Remove all mirrors if `--mirror` was not specified'
|
__fish_brew_complete_arg 'bump-formula-pr' -l force -d 'Remove all mirrors if `--mirror` was not specified'
|
||||||
__fish_brew_complete_arg 'bump-formula-pr' -l fork-org -d 'Use the specified GitHub organization for forking'
|
__fish_brew_complete_arg 'bump-formula-pr' -l fork-org -d 'Use the specified GitHub organization for forking'
|
||||||
__fish_brew_complete_arg 'bump-formula-pr' -l help -d 'Show this message'
|
__fish_brew_complete_arg 'bump-formula-pr' -l help -d 'Show this message'
|
||||||
|
__fish_brew_complete_arg 'bump-formula-pr' -l install-dependencies -d 'Install missing dependencies required to update resources'
|
||||||
__fish_brew_complete_arg 'bump-formula-pr' -l message -d 'Prepend message to the default pull request message'
|
__fish_brew_complete_arg 'bump-formula-pr' -l message -d 'Prepend message to the default pull request message'
|
||||||
__fish_brew_complete_arg 'bump-formula-pr' -l mirror -d 'Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added'
|
__fish_brew_complete_arg 'bump-formula-pr' -l mirror -d 'Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added'
|
||||||
__fish_brew_complete_arg 'bump-formula-pr' -l no-audit -d 'Don\'t run `brew audit` before opening the PR'
|
__fish_brew_complete_arg 'bump-formula-pr' -l no-audit -d 'Don\'t run `brew audit` before opening the PR'
|
||||||
@ -1611,6 +1612,7 @@ __fish_brew_complete_arg 'update-python-resources' -l exclude-packages -d 'Exclu
|
|||||||
__fish_brew_complete_arg 'update-python-resources' -l extra-packages -d 'Include these additional packages when finding resources'
|
__fish_brew_complete_arg 'update-python-resources' -l extra-packages -d 'Include these additional packages when finding resources'
|
||||||
__fish_brew_complete_arg 'update-python-resources' -l help -d 'Show this message'
|
__fish_brew_complete_arg 'update-python-resources' -l help -d 'Show this message'
|
||||||
__fish_brew_complete_arg 'update-python-resources' -l ignore-non-pypi-packages -d 'Don\'t fail if formula is not a PyPI package'
|
__fish_brew_complete_arg 'update-python-resources' -l ignore-non-pypi-packages -d 'Don\'t fail if formula is not a PyPI package'
|
||||||
|
__fish_brew_complete_arg 'update-python-resources' -l install-dependencies -d 'Install missing dependencies required to update resources'
|
||||||
__fish_brew_complete_arg 'update-python-resources' -l package-name -d 'Use the specified package-name when finding resources for formula. If no package name is specified, it will be inferred from the formula\'s stable URL'
|
__fish_brew_complete_arg 'update-python-resources' -l package-name -d 'Use the specified package-name when finding resources for formula. If no package name is specified, it will be inferred from the formula\'s stable URL'
|
||||||
__fish_brew_complete_arg 'update-python-resources' -l print-only -d 'Print the updated resource blocks instead of changing formula'
|
__fish_brew_complete_arg 'update-python-resources' -l print-only -d 'Print the updated resource blocks instead of changing formula'
|
||||||
__fish_brew_complete_arg 'update-python-resources' -l quiet -d 'Make some output more quiet'
|
__fish_brew_complete_arg 'update-python-resources' -l quiet -d 'Make some output more quiet'
|
||||||
|
@ -546,6 +546,7 @@ _brew_bump_formula_pr() {
|
|||||||
'--force[Remove all mirrors if `--mirror` was not specified]' \
|
'--force[Remove all mirrors if `--mirror` was not specified]' \
|
||||||
'--fork-org[Use the specified GitHub organization for forking]' \
|
'--fork-org[Use the specified GitHub organization for forking]' \
|
||||||
'--help[Show this message]' \
|
'--help[Show this message]' \
|
||||||
|
'--install-dependencies[Install missing dependencies required to update resources]' \
|
||||||
'--message[Prepend message to the default pull request message]' \
|
'--message[Prepend message to the default pull request message]' \
|
||||||
'--mirror[Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added]' \
|
'--mirror[Use the specified URL as a mirror URL. If URL is a comma-separated list of URLs, multiple mirrors will be added]' \
|
||||||
'(--strict --online)--no-audit[Don'\''t run `brew audit` before opening the PR]' \
|
'(--strict --online)--no-audit[Don'\''t run `brew audit` before opening the PR]' \
|
||||||
@ -1995,6 +1996,7 @@ _brew_update_python_resources() {
|
|||||||
'--extra-packages[Include these additional packages when finding resources]' \
|
'--extra-packages[Include these additional packages when finding resources]' \
|
||||||
'--help[Show this message]' \
|
'--help[Show this message]' \
|
||||||
'--ignore-non-pypi-packages[Don'\''t fail if formula is not a PyPI package]' \
|
'--ignore-non-pypi-packages[Don'\''t fail if formula is not a PyPI package]' \
|
||||||
|
'--install-dependencies[Install missing dependencies required to update resources]' \
|
||||||
'--package-name[Use the specified package-name when finding resources for formula. If no package name is specified, it will be inferred from the formula'\''s stable URL]' \
|
'--package-name[Use the specified package-name when finding resources for formula. If no package name is specified, it will be inferred from the formula'\''s stable URL]' \
|
||||||
'--print-only[Print the updated resource blocks instead of changing formula]' \
|
'--print-only[Print the updated resource blocks instead of changing formula]' \
|
||||||
'--quiet[Make some output more quiet]' \
|
'--quiet[Make some output more quiet]' \
|
||||||
|
@ -1129,6 +1129,8 @@ nor vice versa. It must use whichever style specification the formula already us
|
|||||||
Specify the new commit *`revision`* corresponding to the specified git *`tag`* or specified *`version`*.
|
Specify the new commit *`revision`* corresponding to the specified git *`tag`* or specified *`version`*.
|
||||||
* `-f`, `--force`:
|
* `-f`, `--force`:
|
||||||
Remove all mirrors if `--mirror` was not specified.
|
Remove all mirrors if `--mirror` was not specified.
|
||||||
|
* `--install-dependencies`:
|
||||||
|
Install missing dependencies required to update resources.
|
||||||
* `--python-package-name`:
|
* `--python-package-name`:
|
||||||
Use the specified *`package-name`* when finding Python resources for *`formula`*. If no package name is specified, it will be inferred from the formula's stable URL.
|
Use the specified *`package-name`* when finding Python resources for *`formula`*. If no package name is specified, it will be inferred from the formula's stable URL.
|
||||||
* `--python-extra-packages`:
|
* `--python-extra-packages`:
|
||||||
@ -1666,6 +1668,8 @@ Update versions for PyPI resource blocks in *`formula`*.
|
|||||||
Suppress any output.
|
Suppress any output.
|
||||||
* `--ignore-non-pypi-packages`:
|
* `--ignore-non-pypi-packages`:
|
||||||
Don't fail if *`formula`* is not a PyPI package.
|
Don't fail if *`formula`* is not a PyPI package.
|
||||||
|
* `--install-dependencies`:
|
||||||
|
Install missing dependencies required to update resources.
|
||||||
* `--version`:
|
* `--version`:
|
||||||
Use the specified *`version`* when finding resources for *`formula`*. If no version is specified, the current version for *`formula`* will be used.
|
Use the specified *`version`* when finding resources for *`formula`*. If no version is specified, the current version for *`formula`* will be used.
|
||||||
* `--package-name`:
|
* `--package-name`:
|
||||||
|
@ -1622,6 +1622,10 @@ Specify the new commit \fIrevision\fR corresponding to the specified git \fItag\
|
|||||||
Remove all mirrors if \fB\-\-mirror\fR was not specified\.
|
Remove all mirrors if \fB\-\-mirror\fR was not specified\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-install\-dependencies\fR
|
||||||
|
Install missing dependencies required to update resources\.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
\fB\-\-python\-package\-name\fR
|
\fB\-\-python\-package\-name\fR
|
||||||
Use the specified \fIpackage\-name\fR when finding Python resources for \fIformula\fR\. If no package name is specified, it will be inferred from the formula\'s stable URL\.
|
Use the specified \fIpackage\-name\fR when finding Python resources for \fIformula\fR\. If no package name is specified, it will be inferred from the formula\'s stable URL\.
|
||||||
.
|
.
|
||||||
@ -2385,6 +2389,10 @@ Suppress any output\.
|
|||||||
Don\'t fail if \fIformula\fR is not a PyPI package\.
|
Don\'t fail if \fIformula\fR is not a PyPI package\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-install\-dependencies\fR
|
||||||
|
Install missing dependencies required to update resources\.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
\fB\-\-version\fR
|
\fB\-\-version\fR
|
||||||
Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\.
|
Use the specified \fIversion\fR when finding resources for \fIformula\fR\. If no version is specified, the current version for \fIformula\fR will be used\.
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user