pavel-avilov commented on a change in pull request #16127:
URL: https://github.com/apache/beam/pull/16127#discussion_r762975703



##########
File path: playground/backend/internal/utils/preparators_utils.go
##########
@@ -36,3 +37,16 @@ func GetPreparators(sdk pb.Sdk, filepath string) 
(*[]preparators.Preparator, err
        }
        return prep, nil
 }
+
+//SpacesToEqualsOption prepares pipelineOptions by replacing spaces to equals
+func SpacesToEqualsOption(pipelineOptions string) string {
+       preparedOptions := strings.Split(pipelineOptions, " ")
+       for index, str := range preparedOptions {
+               if index%2 == 0 && index != 0 {
+                       preparedOptions[index] = fmt.Sprintf(" %s", str)
+               } else if index%2 != 0 {
+                       preparedOptions[index] = fmt.Sprintf("=%s", str)
+               }
+       }

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]


Reply via email to