ui-ux-consultant-cli 1.1.1 → 1.1.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 +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,6 +125,11 @@ program
|
|
|
125
125
|
.option('--yes', 'Skip confirmation prompt', false)
|
|
126
126
|
.option('--dry-run', 'Preview update path without writing any files', false)
|
|
127
127
|
.action(async (opts) => {
|
|
128
|
+
if (!PLATFORM_PATHS[opts.ai]) {
|
|
129
|
+
console.error(chalk_1.default.red(`Unknown platform: ${opts.ai}`));
|
|
130
|
+
console.log(`Supported: ${Object.keys(PLATFORM_PATHS).join(', ')}, all`);
|
|
131
|
+
process.exit(1);
|
|
132
|
+
}
|
|
128
133
|
const target = getInstallTarget(opts.ai, opts.global, process.cwd());
|
|
129
134
|
if (opts.dryRun) {
|
|
130
135
|
console.log(chalk_1.default.yellow(`[dry-run] Would update: ${target}`));
|
|
@@ -153,6 +158,11 @@ program
|
|
|
153
158
|
.option('--global', 'Remove from global install', false)
|
|
154
159
|
.option('--yes', 'Skip confirmation prompt', false)
|
|
155
160
|
.action(async (opts) => {
|
|
161
|
+
if (!PLATFORM_PATHS[opts.ai]) {
|
|
162
|
+
console.error(chalk_1.default.red(`Unknown platform: ${opts.ai}`));
|
|
163
|
+
console.log(`Supported: ${Object.keys(PLATFORM_PATHS).join(', ')}, all`);
|
|
164
|
+
process.exit(1);
|
|
165
|
+
}
|
|
156
166
|
const target = getInstallTarget(opts.ai, opts.global, process.cwd());
|
|
157
167
|
if (!await fs.pathExists(target)) {
|
|
158
168
|
console.log(chalk_1.default.yellow(`Nothing to remove at: ${target}`));
|