-
Notifications
You must be signed in to change notification settings - Fork 11
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
refactor!: commandline interface design discussion #65
Comments
So the subcommands to the following:
|
Sounds like |
If we could combine I'm still of the opinion that we keep the template subcommand in case other devs want to take advantage of the Containerfile generation part and handle their build process the way they want. I see our |
How about renaming I'm still for merging |
What if we called it |
The rebase option? I think |
Ok yeah I like |
I think it should be possible to make the build command fail if any of those incompatible parameters are defined at once. |
I suggest using something like: for replacing rpm-ostree image on your system, which would cover
for installing systemd service for scheduled updates of locally built images. Still not ideal in my view, so I will try to think more. |
I like
|
I do want to keep the workflow the same as it is right now where it will take in the path to the recipe, generate the Containerfile, build it, then use |
I don't like the |
I'm fine with Essentially we can have the build command be the main driver and just have small flags designate which action to use after building the image |
Ok so it sounds like the changes should be:
Are there any other changes before I start working on this change? |
That sounds good! |
@gmpinder ETA? |
I think I'll work on trying to finish it this weekend. I think I was pretty close as-is, but got distracted with fixing other bugs |
I'm not on the computer right now, so can't give a detailed account. I'll put down some thoughts, though.
I understand how
template
andbuild
are separate commands, even thoughbuild
necessitates generating the Containerfile, because the usecases are slightly different. What I don't understand isbuild
/rebase
/upgrade
. Correct me if I'm wrong, but all of these build the OCI image first, then do something with it.build --push
es if specified, others do a local rebase.If there's so many commands to build the Containerfile and image and then do something with it, why not put them under one subcommand? Or do some of these not build the image, is there a point to doing multiple commands to build and rebse, how would that even work?
Wouldn't it be cleaner to have one
build
subcommand, that took (mutually incompatible) parameters like--push
,--rebase
,--only-containerfile
, etc.? Wouldn't even need thetemplate
command, the naming of which I slightly dislike due to the template-aspect being a mere implementation detail, the main function being "compiling" or "building" the recipe into a Containerfile. I'm not even sure if having the possibility to use a custom template file (which I believe was possible at some point at least) is useful.If we're gonna make this API nice, this is the time!
The text was updated successfully, but these errors were encountered: