-
Notifications
You must be signed in to change notification settings - Fork 49
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
Rename image(s) cmd flags to type(s) and add checkpoints to build #879
Conversation
I definitely don't do this /s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to update ./cmd/list-images
too
Oh right, forgot about that one. Thanks! |
The build command requires the --image flag to specify the image type to build. Similarly, gen-manifests and list-images commands support specifying image types using the --images flag. These were originally named this way because image-type(s) felt too long. Rename them to --type and --types. This is less ambiguous and matches the flag name chosen by bootc-image-builder. The cmds are development and testing tools, so there is no need to keep the old and deprecate it for a backwards compatible and smooth transition.
Update the flags wherever they're used in our test setup.
Support specifying checkpoints when running cmd/build.
e5758c3
to
76694cc
Compare
Changed list-images too and updated the commit message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you want me to learn to use new flag? No way! 🤯
Just kidding, all looks fine 😅
Would it make sense to return an error or deprecation warning for people using the "old" argument? |
I considered it but it's just too much fluff for something that's only used internally. |
These are a couple of changes I've been fiddling with while working on other stuff.
--type
is a better name for the image type flag than--image
forcmd/build
and the same for the plural form forcmd/gen-manifests
andcmd/list-images
.--checkpoints
flag that gets passed down to osbuild.We might add an
--osbuild-options
flag instead and use that to pass stuff down to osbuild in the future, but let's keep this short for now.