| 413 | } |
| 414 | |
| 415 | func setMobDoneSquash(configuration *Configuration, key string, value string) { |
| 416 | if strings.HasPrefix(value, "\"") { |
| 417 | unquotedValue, err := strconv.Unquote(value) |
| 418 | if err != nil { |
| 419 | say.Warning("Could not set key from configuration file because value is not parseable (" + key + "=" + value + ")") |
| 420 | return |
| 421 | } |
| 422 | value = unquotedValue |
| 423 | } |
| 424 | configuration.DoneSquash = doneSquash(value) |
| 425 | say.Debug("Overwriting " + key + " =" + configuration.DoneSquash) |
| 426 | } |
| 427 | |
| 428 | func parseEnvironmentVariables(configuration Configuration) Configuration { |
| 429 | setStringFromEnvVariable(&configuration.CliName, "MOB_CLI_NAME") |