ascendant-skills 2.1.2 → 2.1.3
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.mjs +25 -24
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -97,35 +97,36 @@ const choose = ({ providersFlag, scope, yes, detected }) =>
|
|
|
97
97
|
return { providers, scope: scope ?? "global" };
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
100
|
+
// Every tool is listed; the detected ones start checked.
|
|
101
|
+
const providers =
|
|
102
|
+
providersFlag === undefined
|
|
103
|
+
? yield* Prompt.run(
|
|
104
|
+
Prompt.MultiSelect({
|
|
105
|
+
message: "Install for which tools?",
|
|
106
|
+
choices: PROVIDERS.map((p) => ({
|
|
107
|
+
title: p.name,
|
|
108
|
+
value: p.id,
|
|
109
|
+
description: detected.includes(p.id) ? "detected" : undefined,
|
|
110
|
+
selected: detected.includes(p.id),
|
|
111
|
+
})),
|
|
112
|
+
min: 1,
|
|
113
|
+
// Room for every tool plus the select-all and inverse rows.
|
|
114
|
+
maxPerPage: PROVIDERS.length + 2,
|
|
115
|
+
}),
|
|
116
|
+
)
|
|
117
|
+
: yield* parseProvidersOrFail(providersFlag);
|
|
118
|
+
|
|
119
|
+
const chosenScope =
|
|
120
|
+
scope ??
|
|
121
|
+
(yield* Prompt.run(
|
|
120
122
|
Prompt.Select({
|
|
121
123
|
message: "Install for this project or globally?",
|
|
122
124
|
choices: [
|
|
123
|
-
{ title: "Globally", value: "global" },
|
|
124
|
-
{ title: "This project", value: "project" },
|
|
125
|
+
{ title: "Globally", value: "global", description: "For every project" },
|
|
126
|
+
{ title: "This project", value: "project", description: "Only the current directory" },
|
|
125
127
|
],
|
|
126
128
|
}),
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
+
));
|
|
129
130
|
|
|
130
131
|
return { providers, scope: chosenScope };
|
|
131
132
|
});
|
package/package.json
CHANGED