mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -96,7 +96,7 @@ provision:
|
||||
[ ! -e ~/.config/coderv2/session ] && coder login http://localhost:3000 --first-user-username admin --first-user-email admin@coder.com --first-user-password $(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12 | tee ${HOME}/.config/coderv2/password)
|
||||
# Create an initial template
|
||||
temp_template_dir=$(mktemp -d)
|
||||
echo code-server | coder templates init "${temp_template_dir}"
|
||||
coder templates init --id docker "${temp_template_dir}"
|
||||
DOCKER_ARCH="amd64"
|
||||
if [ "$(arch)" = "aarch64" ]; then
|
||||
DOCKER_ARCH="arm64"
|
||||
|
||||
Reference in New Issue
Block a user