8000 feat(cli): push dynamically generated templates with version name by michaelvp411 · Pull Request #17114 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
10000

feat(cli): push dynamically generated templates with version name #17114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
This ensures the version name is set in the request arguments
  • Loading branch information
michaelvp411 committed Mar 26, 2025
commit 14aeb6bffda6898172f1955bd8da189e36bc0857
3 changes: 2 additions & 1 deletion cli/templatepush.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ func (r *RootCmd) templatePush() *serpent.Command {
UserVariableValues: userVariableValues,
}

// This ensures the version name is set in the request arguments regardless of whether you're creating a new template or updating an existing one.
args.Name = versionName
if !createTemplate {
args.Name = versionName
args.Template = &template
args.ReuseParameters = !alwaysPrompt
}
Expand Down
Loading
0