-
Notifications
You must be signed in to change notification settings - Fork 881
Implement basic templates versions
CLI
#3145
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
Conversation
I have not read the code yet, but when you update a template with params, we actually upload 2 template versions. One has a failed job. Is it possible that we also include a column for "active" template version, and also if it succeeded? So look into the |
I like the idea of showing the active version. For the failed versions, should we just not show them in the list? We can do so on the UI too. |
@Emyrk I have added a |
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.
LG
Example: formatExamples( | ||
example{ | ||
Description: "List versions of a specific template", | ||
Command: "coder templates versions list my-template", | ||
}, | ||
), |
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.
Should example be on the list
subcommand? Probably ok in both spots?
This PR implements the
templates versions
CLI command.Subcommand implemented:
list
- List all the versions of the specified template.Only displays the columns: "Name", "Created At", "Created By", "Status" and an "Active" tag for the active version.
Currently, the versions are displayed in chronological order (oldest to latest).
Subtasks
templates versions list
commandtemplates list
templates list
Makes progress towards completing #1425
Closes #3041
Screenshot