(s *string, key string, value string)
| 393 | } |
| 394 | |
| 395 | func setUnquotedString(s *string, key string, value string) { |
| 396 | unquotedValue, err := strconv.Unquote(value) |
| 397 | if err != nil { |
| 398 | say.Warning("Could not set key from configuration file because value is not parseable (" + key + "=" + value + ")") |
| 399 | return |
| 400 | } |
| 401 | *s = unquotedValue |
| 402 | say.Debug("Overwriting " + key + " =" + unquotedValue) |
| 403 | } |
| 404 | |
| 405 | func setBoolean(s *bool, key string, value string) { |
| 406 | boolValue, err := strconv.ParseBool(value) |
no test coverage detected