-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: Add ability to escape special character when parse variables argument #355
fix: Add ability to escape special character when parse variables argument #355
Conversation
…e statement start = idx + 1
pkg/cmd/runbook/run/run.go
Outdated
@@ -181,7 +181,7 @@ func runbookRun(cmd *cobra.Command, f factory.Factory, flags *RunFlags) error { | |||
return err | |||
} | |||
|
|||
parsedVariables, err := executionscommon.ParseVariableStringArray(flags.Variables.Value) | |||
parsedVariables, err := executionscommon.ParseVariableStringArray(flags.Variables.Value, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we just remove the enableEscape
parameter, this will work for runbook runs too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally, it works but the change needs to be on runbook runs too.
Support escape
\:
when parse inrelease deploy --variable "Test\:Prompt:Value1"
BEGIN_COMMIT_OVERRIDE
fix: Add ability to escape special character when parsing variables argument
END_COMMIT_OVERRIDE