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
+11 -1
View File
@@ -7,5 +7,15 @@ Get started with a templated template.
## Usage
```console
coder templates init [directory]
coder templates init [flags] [directory]
```
## Options
### --id
| | |
| ---- | ---------------------------- | --------- | ----------- | ----------- | -------- | ------ | -------------------- | ---------------- | --------- | ---------------- | ----------- | ------------------ |
| Type | <code>enum[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]</code> |
Specify a given example template by ID.