(directory: string)
| 138 | } |
| 139 | |
| 140 | function directoryLabel(directory: string) { |
| 141 | const resolved = path.resolve(directory) |
| 142 | const display = |
| 143 | resolved === Global.Path.home |
| 144 | ? "~" |
| 145 | : resolved.startsWith(`${Global.Path.home}${path.sep}`) |
| 146 | ? resolved.replace(Global.Path.home, "~") |
| 147 | : resolved |
| 148 | return display.replaceAll("\\", "/") |
| 149 | } |
| 150 | |
| 151 | function queueSplash( |
| 152 | renderer: Pick<CliRenderer, "writeToScrollback" | "requestRender">, |
no outgoing calls
no test coverage detected