mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: archive template versions to hide them from the ui (#10179)
* api + cli implementation
This commit is contained in:
+2
@@ -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
|
||||
|
||||
@@ -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
@@ -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.
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user