You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
329 B
13 lines
329 B
package cli
|
|
|
|
func withEnvHint(envVars []string, str string) string {
|
|
// if we are running is powershell this env var is set
|
|
// and so we should use the default env format
|
|
if os.Getenv("PSHOME") != "" {
|
|
envText = defaultEnvFormat(envVars)
|
|
} else {
|
|
envText = envFormat(envVars, "%", "%, %", "%")
|
|
}
|
|
return str + envText
|
|
}
|