Skip to content

Commit 8036011

Browse files
committed
trim leading and trailing spaces from template parameters (#2829)
1 parent 4f1df88 commit 8036011

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/cliui/parameter.go

Lines changed: 1 addition & 0 deletions
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)