MCPcopy
hub / github.com/urfave/cli / withEnvHint

Function withEnvHint

docs.go:66–74  ·  view source on GitHub ↗
(envVars []string, str string)

Source from the content-addressed store, hash-verified

64}
65
66func withEnvHint(envVars []string, str string) string {
67 envText := ""
68 if runtime.GOOS != "windows" || os.Getenv("PSHOME") != "" {
69 envText = defaultEnvFormat(envVars)
70 } else {
71 envText = envFormat(envVars, "%", "%, %", "%")
72 }
73 return str + envText
74}
75
76func withFileHint(filePath, str string) string {
77 fileText := ""

Calls 2

defaultEnvFormatFunction · 0.85
envFormatFunction · 0.85