Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5eecbaa

Browse files
authored
fix: trim leading and trailing spaces from template parameters (coder#2829) (coder#2879)
1 parent 749694b commit 5eecbaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/cliui/parameter.go

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func ParameterSchema(cmd *cobra.Command, parameterSchema codersdk.ParameterSchem
4747
value, err = Prompt(cmd, PromptOptions{
4848
Text: Styles.Bold.Render(text),
4949
})
50+
value = strings.TrimSpace(value)
5051
}
5152
if err != nil {
5253
return "", err

0 commit comments

Comments
 (0)