(key: string, cwd: string, shell: string)
| 145 | } |
| 146 | |
| 147 | function auto(key: string, cwd: string, shell: string) { |
| 148 | const name = key.toUpperCase() |
| 149 | if (name === "HOME") return os.homedir() |
| 150 | if (name === "PWD") return cwd |
| 151 | if (name === "PSHOME") return path.dirname(shell) |
| 152 | } |
| 153 | |
| 154 | function expand(text: string, cwd: string, shell: string) { |
| 155 | const out = unquote(text) |
no outgoing calls
no test coverage detected