(variables []string)
| 236 | } |
| 237 | |
| 238 | func parseVariableValuesFromCommandLine(variables []string) ([]VariableValue, error) { |
| 239 | var values []VariableValue |
| 240 | for _, keyValue := range variables { |
| 241 | split := strings.SplitN(keyValue, "=", 2) |
| 242 | if len(split) < 2 { |
| 243 | return nil, xerrors.Errorf("format key=value expected, but got %s", keyValue) |
| 244 | } |
| 245 | |
| 246 | values = append(values, VariableValue{ |
| 247 | Name: split[0], |
| 248 | Value: split[1], |
| 249 | }) |
| 250 | } |
| 251 | return values, nil |
| 252 | } |
| 253 | |
| 254 | func CombineVariableValues(valuesSets ...[]VariableValue) []VariableValue { |
| 255 | combinedValues := make(map[string]string) |
no test coverage detected