MCPcopy Create free account
hub / github.com/entireio/git-sync / envBool

Function envBool

cmd/git-sync/flags.go:103–106  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

101}
102
103func envBool(key string) bool {
104 value := strings.TrimSpace(strings.ToLower(os.Getenv(key)))
105 return value == "1" || value == "true" || value == "yes" || value == "on"
106}
107
108func splitCSV(value string) []string {
109 parts := strings.Split(value, ",")

Callers 6

newProbeCmdFunction · 0.85
addSourceEndpointFunction · 0.85
addTargetEndpointFunction · 0.85
addSourceAuthFunction · 0.85
addTargetAuthFunction · 0.85
newConvertSHA256CmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected