(args: UninstallArgs, method: Installation.Method)
| 88 | } |
| 89 | |
| 90 | async function collectRemovalTargets(args: UninstallArgs, method: Installation.Method): Promise<RemovalTargets> { |
| 91 | const directories: RemovalTargets["directories"] = [ |
| 92 | { path: Global.Path.data, label: "Data", keep: args.keepData }, |
| 93 | { path: Global.Path.cache, label: "Cache", keep: false }, |
| 94 | { path: Global.Path.config, label: "Config", keep: args.keepConfig }, |
| 95 | { path: Global.Path.state, label: "State", keep: false }, |
| 96 | ] |
| 97 | |
| 98 | const shellConfig = method === "curl" ? await getShellConfigFile() : null |
| 99 | const binary = method === "curl" ? process.execPath : null |
| 100 | |
| 101 | return { directories, shellConfig, binary } |
| 102 | } |
| 103 | |
| 104 | async function showRemovalSummary(targets: RemovalTargets, method: Installation.Method) { |
| 105 | prompts.log.message("The following will be removed:") |
no test coverage detected