@kud/soap-cli 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -294,6 +294,13 @@ Welcome to ${chalk.bold("soap")} \u{1F9FC}, ${chalk.italic("the app cleaner")}.
|
|
|
294
294
|
try {
|
|
295
295
|
const { appName, zapFiles } = isCask ? await spinner(chalk.dim("Fetching cask info\u2026"), () => getCaskInfo(param)) : { appName: appNameFromPath(param), zapFiles: [] };
|
|
296
296
|
if (!appName) {
|
|
297
|
+
if (isCask) {
|
|
298
|
+
signale.warn(
|
|
299
|
+
`Could not determine app name for "${param}", falling back to brew uninstall.`
|
|
300
|
+
);
|
|
301
|
+
await $2`brew uninstall --zap ${param}`;
|
|
302
|
+
process.exit(0);
|
|
303
|
+
}
|
|
297
304
|
signale.error(`Could not determine app name for "${param}".`);
|
|
298
305
|
process.exit(1);
|
|
299
306
|
}
|