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

Function setMobDoneSquash

configuration/configuration.go:415–426  ·  view source on GitHub ↗
(configuration *Configuration, key string, value string)

Source from the content-addressed store, hash-verified

413}
414
415func 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
428func parseEnvironmentVariables(configuration Configuration) Configuration {
429 setStringFromEnvVariable(&configuration.CliName, "MOB_CLI_NAME")

Calls 3

WarningFunction · 0.92
DebugFunction · 0.92
doneSquashFunction · 0.85

Tested by 3

TestSetMobDoneSquashFunction · 0.68