-
Notifications
You must be signed in to change notification settings - Fork 762
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
Make pull commands be consistent #3735
Make pull commands be consistent #3735
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TomSweeneyRedHat The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If we merge this before we build the next release for Podman v4.0, I'll need to at least change the documentation in Podman too. @mheon, FYI |
You need to mark --pull-always and --pull-never as hidden so that we don't see them in --help. ./bin/buildah build --help | grep pull |
@TomSweeneyRedHat This is the time to get this done. Since it is a somewhat breaking change (Not really but a change in UI). |
2ce93cc
to
cbe07e7
Compare
@Luap99 Cobra question for you, or maybe @bbaude. I switched the
The pull flag gets set to If I add an equal sign after the pull, ala:
Then pull gets set to I've looked all over the limited Cobra doc to get this to work, and maybe my eyelids are just too heavy and I'm missing it at this point, but any tips/tricks for this? In a perfect world, I'd have the |
You have to set |
LGTM once you add @Luap99 line. |
@Luap99 TYVM for the pointer, looks like:
turns the trick. As a bonus, I finally located the docs for the Cobra flags. Off to test a bit more, then I'll resubmit. |
7ef52a7
to
8eb4171
Compare
OK, this looks happy in my testing now. Hopefully, the CI will concur. |
/lgtm |
One flake, one real error, I think I've the real one figured out. Pushing again soon. |
Per @edsantiago 's suggestion, make the pull commands consistent, always accepting a value. Currently we have: --pull --pull=true --pull=false --pull-never --pull-always With this changes, we will only have pull with a variety of options, ala: --pull --pull=true --pull=false --pull=never --pull=always For backward compatibility, the --pull-never and --pull-always options will remain operational, however they are not documented and are conisdered deprecated. Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
8eb4171
to
8c250d4
Compare
/lgtm |
It's an API break in |
No the Old CLI is still handled. |
Consumers that imported |
Do you want to bump the major version of Buildah? |
Per @edsantiago 's suggestion, make the pull commands consistent, always
accepting a value. Currently we have:
--pull
--pull=true
--pull=false
--pull-never
--pull-always
With this changes, we will only have pull with a variety of options,
ala:
--pull
--pull=true
--pull=false
--pull=never
--pull=always
For backward compatibility, the --pull-never and --pull-always
options will remain operational, however they are not documented
and are conisdered deprecated.
Signed-off-by: tomsweeneyredhat tsweeney@redhat.com
What type of PR is this?
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?