mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
dev-cmd/pr-upload: allow --keep-old with --upload-only
This commit is contained in:
parent
7b7bf51e1a
commit
627c4a714c
@ -16,7 +16,8 @@ module Homebrew
|
|||||||
EOS
|
EOS
|
||||||
switch "--keep-old",
|
switch "--keep-old",
|
||||||
description: "If the formula specifies a rebuild version, " \
|
description: "If the formula specifies a rebuild version, " \
|
||||||
"attempt to preserve its value in the generated DSL."
|
"attempt to preserve its value in the generated DSL. " \
|
||||||
|
"When using GitHub Packages, this also appends the manifest to the existing list."
|
||||||
switch "-n", "--dry-run",
|
switch "-n", "--dry-run",
|
||||||
description: "Print what would be done rather than doing it."
|
description: "Print what would be done rather than doing it."
|
||||||
switch "--no-commit",
|
switch "--no-commit",
|
||||||
@ -34,7 +35,6 @@ module Homebrew
|
|||||||
description: "Use the specified download strategy class for downloading the bottle's URL instead of " \
|
description: "Use the specified download strategy class for downloading the bottle's URL instead of " \
|
||||||
"Homebrew's default."
|
"Homebrew's default."
|
||||||
|
|
||||||
conflicts "--upload-only", "--keep-old"
|
|
||||||
conflicts "--upload-only", "--no-commit"
|
conflicts "--upload-only", "--no-commit"
|
||||||
|
|
||||||
named_args :none
|
named_args :none
|
||||||
|
@ -1282,7 +1282,7 @@ __fish_brew_complete_arg 'pr-upload' -l committer -d 'Specify a committer name a
|
|||||||
__fish_brew_complete_arg 'pr-upload' -l debug -d 'Display any debugging information'
|
__fish_brew_complete_arg 'pr-upload' -l debug -d 'Display any debugging information'
|
||||||
__fish_brew_complete_arg 'pr-upload' -l dry-run -d 'Print what would be done rather than doing it'
|
__fish_brew_complete_arg 'pr-upload' -l dry-run -d 'Print what would be done rather than doing it'
|
||||||
__fish_brew_complete_arg 'pr-upload' -l help -d 'Show this message'
|
__fish_brew_complete_arg 'pr-upload' -l help -d 'Show this message'
|
||||||
__fish_brew_complete_arg 'pr-upload' -l keep-old -d 'If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL'
|
__fish_brew_complete_arg 'pr-upload' -l keep-old -d 'If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL. When using GitHub Packages, this also appends the manifest to the existing list'
|
||||||
__fish_brew_complete_arg 'pr-upload' -l no-commit -d 'Do not generate a new commit before uploading'
|
__fish_brew_complete_arg 'pr-upload' -l no-commit -d 'Do not generate a new commit before uploading'
|
||||||
__fish_brew_complete_arg 'pr-upload' -l quiet -d 'Make some output more quiet'
|
__fish_brew_complete_arg 'pr-upload' -l quiet -d 'Make some output more quiet'
|
||||||
__fish_brew_complete_arg 'pr-upload' -l root-url -d 'Use the specified URL as the root of the bottle\'s URL instead of Homebrew\'s default'
|
__fish_brew_complete_arg 'pr-upload' -l root-url -d 'Use the specified URL as the root of the bottle\'s URL instead of Homebrew\'s default'
|
||||||
|
@ -1591,12 +1591,12 @@ _brew_pr_upload() {
|
|||||||
'--debug[Display any debugging information]' \
|
'--debug[Display any debugging information]' \
|
||||||
'--dry-run[Print what would be done rather than doing it]' \
|
'--dry-run[Print what would be done rather than doing it]' \
|
||||||
'--help[Show this message]' \
|
'--help[Show this message]' \
|
||||||
'(--upload-only)--keep-old[If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL]' \
|
'--keep-old[If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL. When using GitHub Packages, this also appends the manifest to the existing list]' \
|
||||||
'(--upload-only)--no-commit[Do not generate a new commit before uploading]' \
|
'(--upload-only)--no-commit[Do not generate a new commit before uploading]' \
|
||||||
'--quiet[Make some output more quiet]' \
|
'--quiet[Make some output more quiet]' \
|
||||||
'--root-url[Use the specified URL as the root of the bottle'\''s URL instead of Homebrew'\''s default]' \
|
'--root-url[Use the specified URL as the root of the bottle'\''s URL instead of Homebrew'\''s default]' \
|
||||||
'--root-url-using[Use the specified download strategy class for downloading the bottle'\''s URL instead of Homebrew'\''s default]' \
|
'--root-url-using[Use the specified download strategy class for downloading the bottle'\''s URL instead of Homebrew'\''s default]' \
|
||||||
'(--keep-old --no-commit)--upload-only[Skip running `brew bottle` before uploading]' \
|
'(--no-commit)--upload-only[Skip running `brew bottle` before uploading]' \
|
||||||
'--verbose[Make some output more verbose]' \
|
'--verbose[Make some output more verbose]' \
|
||||||
'--warn-on-upload-failure[Warn instead of raising an error if the bottle upload fails. Useful for repairing bottle uploads that previously failed]'
|
'--warn-on-upload-failure[Warn instead of raising an error if the bottle upload fails. Useful for repairing bottle uploads that previously failed]'
|
||||||
}
|
}
|
||||||
|
@ -2563,7 +2563,8 @@ Apply the bottle commit and publish bottles to a host.
|
|||||||
`--keep-old`
|
`--keep-old`
|
||||||
|
|
||||||
: If the formula specifies a rebuild version, attempt to preserve its value in
|
: If the formula specifies a rebuild version, attempt to preserve its value in
|
||||||
the generated DSL.
|
the generated DSL. When using GitHub Packages, this also appends the manifest
|
||||||
|
to the existing list.
|
||||||
|
|
||||||
`-n`, `--dry-run`
|
`-n`, `--dry-run`
|
||||||
|
|
||||||
|
@ -1634,7 +1634,7 @@ Comma\-separated list of workflows which can be ignored if they have not been ru
|
|||||||
Apply the bottle commit and publish bottles to a host\.
|
Apply the bottle commit and publish bottles to a host\.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-keep\-old\fP
|
\fB\-\-keep\-old\fP
|
||||||
If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL\.
|
If the formula specifies a rebuild version, attempt to preserve its value in the generated DSL\. When using GitHub Packages, this also appends the manifest to the existing list\.
|
||||||
.TP
|
.TP
|
||||||
\fB\-n\fP, \fB\-\-dry\-run\fP
|
\fB\-n\fP, \fB\-\-dry\-run\fP
|
||||||
Print what would be done rather than doing it\.
|
Print what would be done rather than doing it\.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user