vaderjs 2.3.8 → 2.3.9
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/cli.ts +1 -39
- package/package.json +1 -1
package/cli.ts
CHANGED
|
@@ -225,42 +225,4 @@ export async function listPlugins() {
|
|
|
225
225
|
logSection("🔌 Installed Vader plugins");
|
|
226
226
|
deps.forEach((d) => console.log("•", d));
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
/* ---------------------------------- cli ----------------------------------- */
|
|
230
|
-
|
|
231
|
-
const [, , command, arg] = process.argv;
|
|
232
|
-
|
|
233
|
-
switch (command) {
|
|
234
|
-
case "init":
|
|
235
|
-
await initProject(arg);
|
|
236
|
-
break;
|
|
237
|
-
|
|
238
|
-
case "add":
|
|
239
|
-
await addPlugin(arg);
|
|
240
|
-
break;
|
|
241
|
-
|
|
242
|
-
case "remove":
|
|
243
|
-
await removePlugin(arg);
|
|
244
|
-
break;
|
|
245
|
-
|
|
246
|
-
case "list":
|
|
247
|
-
await listPlugins();
|
|
248
|
-
break;
|
|
249
|
-
|
|
250
|
-
default:
|
|
251
|
-
console.log(`
|
|
252
|
-
Vader CLI
|
|
253
|
-
|
|
254
|
-
Commands:
|
|
255
|
-
vader init [dir] [--yes]
|
|
256
|
-
vader add <plugin> [--force]
|
|
257
|
-
vader remove <plugin>
|
|
258
|
-
vader list
|
|
259
|
-
|
|
260
|
-
Examples:
|
|
261
|
-
vader init my-app --yes
|
|
262
|
-
vader add bootstrap
|
|
263
|
-
vader remove bootstrap
|
|
264
|
-
vader list
|
|
265
|
-
`);
|
|
266
|
-
}
|
|
228
|
+
|