feat: add --version flag to coder templates pull, default to active version (#10153)

Fixes https://github.com/coder/coder/issues/9837
This commit is contained in:
Colin Adler
2023-10-10 10:20:31 -05:00
committed by GitHub
parent 2506415def
commit c11f241622
8 changed files with 213 additions and 32 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ SUBCOMMANDS:
edit Edit the metadata of a template by name.
init Get started with a templated template.
list List all the templates available for the organization
pull Download the latest version of a template to a path.
pull Download the active, latest, or specified version of a template
to a path.
push Push a new template version from the current directory or as
specified by flag
versions Manage different versions of the specified template
+6 -1
View File
@@ -3,12 +3,17 @@ coder v0.0.0-devel
USAGE:
coder templates pull [flags] <name> [destination]
Download the latest version of a template to a path.
Download the active, latest, or specified version of a template to a path.
OPTIONS:
--tar bool
Output the template as a tar archive to stdout.
--version string
The name of the template version to pull. Use 'active' to pull the
active version, 'latest' to pull the latest version, or the name of
the template version to pull.
-y, --yes bool
Bypass prompts.