parent
5ac0710c11
commit
da8868ffd9
@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
Loading…
Reference in new issue