MCPcopy Create free account
hub / github.com/arctic-cli/interface / collectRemovalTargets

Function collectRemovalTargets

packages/arctic/src/cli/cmd/uninstall.ts:89–101  ·  view source on GitHub ↗
(args: UninstallArgs, method: Installation.Method)

Source from the content-addressed store, hash-verified

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

Callers 1

uninstall.tsFile · 0.85

Calls 1

getShellConfigFileFunction · 0.85

Tested by

no test coverage detected