* Replace home-directory prefix in a path with `~/` for cleaner log * lines. Pure cosmetic.
(p: string)
| 613 | * lines. Pure cosmetic. |
| 614 | */ |
| 615 | function tildify(p: string): string { |
| 616 | const home = require('os').homedir(); |
| 617 | if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length); |
| 618 | return p; |
| 619 | } |
| 620 | |
| 621 | async function resolveTargets( |
| 622 | clack: typeof import('@clack/prompts'), |
no outgoing calls
no test coverage detected