mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add workspace actions cleanup configuration flags to CLI template create and edit (#7453)
* added cleanup flags on template create * added cleanup flags on template edit * fixed tests * added to tests
This commit is contained in:
@@ -9,6 +9,14 @@ Create a template from the current directory or as specified by flag
|
||||
-d, --directory string (default: .)
|
||||
Specify the directory to create from, use '-' to read tar from stdin.
|
||||
|
||||
--failure-ttl duration (default: 0h)
|
||||
Specify a failure TTL for workspaces created from this template. This
|
||||
licensed feature's default is 0h (off).
|
||||
|
||||
--inactivity-ttl duration (default: 0h)
|
||||
Specify an inactivity TTL for workspaces created from this template.
|
||||
This licensed feature's default is 0h (off).
|
||||
|
||||
--parameter-file string
|
||||
Specify a file path with parameter values.
|
||||
|
||||
|
||||
@@ -24,9 +24,17 @@ Edit the metadata of a template by name.
|
||||
--display-name string
|
||||
Edit the template display name.
|
||||
|
||||
--failure-ttl duration (default: 0h)
|
||||
Specify a failure TTL for workspaces created from this template. This
|
||||
licensed feature's default is 0h (off).
|
||||
|
||||
--icon string
|
||||
Edit the template icon path.
|
||||
|
||||
--inactivity-ttl duration (default: 0h)
|
||||
Specify an inactivity TTL for workspaces created from this template.
|
||||
This licensed feature's default is 0h (off).
|
||||
|
||||
--max-ttl duration
|
||||
Edit the template maximum time before shutdown - workspaces created
|
||||
from this template must shutdown within the given duration after
|
||||
|
||||
Reference in New Issue
Block a user