- Notifications
You must be signed in to change notification settings - Fork1.1k
chore: deprecate template create command in favor of template push#11390
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ammario commentedJan 3, 2024
I'm good with this change as it gets us closer to the ideal state. We will have to mark the PR as a breaking change. |
f0ssel commentedJan 3, 2024
Great, I'll continue this one and mark it so. Thanks for the guidance on this one. |
f0ssel commentedJan 3, 2024
@ammario One more thing, since this will be a breaking change - should we just bite the bullet and remove the create command altogether? Or is that too drastic? I figure it may be better than breaking people twice, once now and once again when we remove it. (And lets us do the cleanup now instead of possibly forgetting to do it later). |
ammario commentedJan 3, 2024
That's a good point. We could go ahead and break "create" right now, but I don't think we should simply remove the command from the CLI as the error message would be scary. Instead, we can hide the subcommand and make it fail with something like "use |
ammario commentedJan 3, 2024
Hmm, I wonder if we can just make |
f0ssel commentedJan 4, 2024
I went ahead and just made the command produce an error instructing users to |
f0ssel commentedJan 5, 2024
sreya left a comment
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.
It would be good if the command was marked as deprecrated in thecoder templates --help output
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
sreya left a comment
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.
LGTM, may be good to support deprecation inclibase but I don't have any suggestions for the best way to do it
2cfd8df to13794fdCompare
Uh oh!
There was an error while loading.Please reload this page.
Closes#9318
What this changes:
coder template createhas been marked as deprecated and produces a warning pushing users topushandeditcommands.--createflag has been removed frompushin favor of automatically creating if template does not exist.--privateflag has been added tocoder template editto meet parity with the previouscreatecommand flags.disable_everyone_group_accessbool has been added to the template edit API to support the new--privateflag.coder templates createtocoder templates push.Examples: