MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / setBoolean

Function setBoolean

configuration/configuration.go:405–413  ·  view source on GitHub ↗
(s *bool, key string, value string)

Source from the content-addressed store, hash-verified

403}
404
405func setBoolean(s *bool, key string, value string) {
406 boolValue, err := strconv.ParseBool(value)
407 if err != nil {
408 say.Warning("Could not set key from configuration file because value is not parseable (" + key + "=" + value + ")")
409 return
410 }
411 *s = boolValue
412 say.Debug("Overwriting " + key + " =" + strconv.FormatBool(boolValue))
413}
414
415func setMobDoneSquash(configuration *Configuration, key string, value string) {
416 if strings.HasPrefix(value, "\"") {

Callers 2

parseUserConfigurationFunction · 0.85

Calls 2

WarningFunction · 0.92
DebugFunction · 0.92

Tested by

no test coverage detected