feat(cli): add --id parameter to templates init command (#7116)

This PR makes the following changes:

- Adds an --id parameter to coder templates init so that you can non-interactively initialize a specific example template by ID (e.g. folder name)
- Updates develop.sh and lima/coder.yaml to use this parameter to select the docker example template.
This commit is contained in:
Cian Johnston
2023-04-13 15:02:49 +01:00
committed by GitHub
parent 17f692a89a
commit 87fe16cde9
6 changed files with 113 additions and 30 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
Usage: coder templates init [directory]
Usage: coder templates init [flags] [directory]
Get started with a templated template.
Options
--id aws-ecs-container|aws-linux|aws-windows|azure-linux|do-linux|docker|docker-with-dotfiles|fly-docker-image|gcp-linux|gcp-vm-container|gcp-windows|kubernetes
Specify a given example template by ID.
---
Run `coder --help` for a list of global options.