(key: string)
| 139 | } |
| 140 | |
| 141 | function envValue(key: string) { |
| 142 | if (process.platform !== "win32") return process.env[key] |
| 143 | const name = Object.keys(process.env).find((item) => item.toLowerCase() === key.toLowerCase()) |
| 144 | return name ? process.env[name] : undefined |
| 145 | } |
| 146 | |
| 147 | function auto(key: string, cwd: string, shell: string) { |
| 148 | const name = key.toUpperCase() |