@the-grove/cli 0.1.8 → 0.1.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/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,6 +50,9 @@ async function add(components, options) {
|
|
|
50
50
|
if (options.yes) {
|
|
51
51
|
args.push("--yes");
|
|
52
52
|
}
|
|
53
|
+
if (options.overwrite) {
|
|
54
|
+
args.push("--overwrite");
|
|
55
|
+
}
|
|
53
56
|
if (options.path) {
|
|
54
57
|
args.push("--path", options.path);
|
|
55
58
|
}
|
|
@@ -301,7 +304,7 @@ async function fetchCategoryComponents(category) {
|
|
|
301
304
|
// src/index.ts
|
|
302
305
|
var program = new Command();
|
|
303
306
|
program.name("the-grove").description("Component library CLI for managing UI components").version("0.1.0");
|
|
304
|
-
program.command("add").description("Add component(s) to your project").argument("[components...]", "Component names to add").option("-p, --path <path>", "Custom installation path").option("-y, --yes", "Skip confirmation prompts").action(add);
|
|
307
|
+
program.command("add").description("Add component(s) to your project").argument("[components...]", "Component names to add").option("-p, --path <path>", "Custom installation path").option("-y, --yes", "Skip confirmation prompts").option("-o, --overwrite", "Overwrite existing files").action(add);
|
|
305
308
|
program.command("contribute").description("Contribute component(s) back to the template repository").argument("<files...>", "Component file paths to contribute").action(contribute);
|
|
306
309
|
program.command("list").description("List all available components").option("-c, --category <category>", "Filter by category (core, convex, clerk, convex-clerk)").option("-t, --tag <tag>", "Filter by tag").action(list);
|
|
307
310
|
program.parse();
|