feat: archive template versions to hide them from the ui (#10179)

* api + cli implementation
This commit is contained in:
Steven Masley
2023-10-11 09:26:22 -05:00
committed by GitHub
parent edbd51955c
commit 1e950fa9a8
35 changed files with 1472 additions and 38 deletions
+2
View File
@@ -23,6 +23,8 @@ USAGE:
$ coder templates push my-template
SUBCOMMANDS:
archive Archive unused or failed template versions from a given
template(s)
create Create a template from the current directory or as specified by
flag
delete Delete templates
+17
View File
@@ -0,0 +1,17 @@
coder v0.0.0-devel
USAGE:
coder templates archive [flags] [template-name...]
Archive unused or failed template versions from a given template(s)
OPTIONS:
--all bool
Include all unused template versions. By default, only failed template
versions are archived.
-y, --yes bool
Bypass prompts.
———
Run `coder --help` for a list of global options.
+3 -1
View File
@@ -12,7 +12,9 @@ USAGE:
$ coder templates versions list my-template
SUBCOMMANDS:
list List all the versions of the specified template
archive Archive a template version(s).
list List all the versions of the specified template
unarchive Unarchive a template version(s).
———
Run `coder --help` for a list of global options.
@@ -0,0 +1,14 @@
coder v0.0.0-devel
USAGE:
coder templates versions archive [flags] <template-name>
[template-version-names...]
Archive a template version(s).
OPTIONS:
-y, --yes bool
Bypass prompts.
———
Run `coder --help` for a list of global options.
+5 -2
View File
@@ -6,9 +6,12 @@ USAGE:
List all the versions of the specified template
OPTIONS:
-c, --column string-array (default: name,created at,created by,status,active)
-c, --column string-array (default: Name,Created At,Created By,Status,Active)
Columns to display in table output. Available columns: name, created
at, created by, status, active.
at, created by, status, active, archived.
--include-archived bool
Include archived versions in the result list.
-o, --output string (default: table)
Output format. Available formats: table, json.
@@ -0,0 +1,14 @@
coder v0.0.0-devel
USAGE:
coder templates versions unarchive [flags] <template-name>
[template-version-names...]
Unarchive a template version(s).
OPTIONS:
-y, --yes bool
Bypass prompts.
———
Run `coder --help` for a list of global options.