* Replace home-directory prefix in a path with `~/` for cleaner log * lines. Pure cosmetic.
(p: string)
| 625 | * lines. Pure cosmetic. |
| 626 | */ |
| 627 | function tildify(p: string): string { |
| 628 | const home = require('os').homedir(); |
| 629 | if (p.startsWith(home + path.sep)) return '~' + p.substring(home.length); |
| 630 | return p; |
| 631 | } |
| 632 | |
| 633 | async function resolveTargets( |
| 634 | clack: typeof import('@clack/prompts'), |
no outgoing calls
no test coverage detected