(envVars []string, str string)
| 64 | } |
| 65 | |
| 66 | func 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 | |
| 76 | func withFileHint(filePath, str string) string { |
| 77 | fileText := "" |