pavel-avilov commented on a change in pull request #16127:
URL: https://github.com/apache/beam/pull/16127#discussion_r764020306
##########
File path: playground/backend/internal/utils/preparators_utils.go
##########
@@ -36,3 +37,18 @@ func GetPreparators(sdk pb.Sdk, filepath string)
(*[]preparators.Preparator, err
}
return prep, nil
}
+
+// SpacesToEqualsOption prepares pipelineOptions by replacing spaces to equals.
+// Initially, the string is converted to an array of options and their values.
+// Then, a space is added to the odd indexed words, except for the first, and
an equal is added to each even word.
+func SpacesToEqualsOption(pipelineOptions string) string {
+ preparedOptions := strings.Split(pipelineOptions, " ")
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]