spirewise 1.9.1 → 1.9.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/bin/cli.js +6 -7
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -405,14 +405,13 @@ async function main() {
|
|
|
405
405
|
const Ving = action === 'remove' ? 'Removing' : 'Installing';
|
|
406
406
|
banner();
|
|
407
407
|
|
|
408
|
-
// Clack-style flow frame:
|
|
409
|
-
//
|
|
408
|
+
// Clack-style flow frame: each step hangs off the │ rail and the run closes with
|
|
409
|
+
// └. Only drawn when we actually show interactive steps.
|
|
410
410
|
let framed = false;
|
|
411
411
|
const ensureIntro = () => {
|
|
412
412
|
if (framed || !tty) return;
|
|
413
413
|
framed = true;
|
|
414
414
|
console.log('');
|
|
415
|
-
console.log(`${paint(RAW.cyan, G.open)} ${paint(RAW.bold, action === 'remove' ? 'Remove skills' : 'Install skills')}`);
|
|
416
415
|
};
|
|
417
416
|
|
|
418
417
|
// 1) SKILLS
|
|
@@ -459,9 +458,9 @@ async function main() {
|
|
|
459
458
|
title: 'Choose Where', step: 3,
|
|
460
459
|
subtitle: action === 'remove' ? 'Where to remove them from?' : 'Where should they go?',
|
|
461
460
|
items: [
|
|
462
|
-
{ value: 'project', label: '
|
|
463
|
-
{ value: 'global', label: '
|
|
464
|
-
{ value: 'both', label: 'Both',
|
|
461
|
+
{ value: 'project', label: 'Workspace', hint: 'just this folder' },
|
|
462
|
+
{ value: 'global', label: 'Global', hint: 'all your projects' },
|
|
463
|
+
{ value: 'both', label: 'Both', hint: 'workspace + global' },
|
|
465
464
|
],
|
|
466
465
|
multi: false, preselected: [],
|
|
467
466
|
});
|
|
@@ -474,7 +473,7 @@ async function main() {
|
|
|
474
473
|
if (framed) console.log(railLn());
|
|
475
474
|
|
|
476
475
|
const pl = (n, w) => `${n} ${w}${n === 1 ? '' : 's'}`;
|
|
477
|
-
const where = { project: '
|
|
476
|
+
const where = { project: 'workspace', global: 'global', both: 'workspace + global' }[scope];
|
|
478
477
|
const lead = framed ? `${rail()} ` : ' '; // hang progress/result off the rail
|
|
479
478
|
const end = framed ? `${paint(RAW.cyan, G.close)} ` : ' ';
|
|
480
479
|
|
package/package.json
CHANGED