From 13ca8bd46ac124493f17ce370b88a7b47512c950 Mon Sep 17 00:00:00 2001 From: shadcn Date: Tue, 19 Sep 2023 16:25:57 +0400 Subject: [PATCH] feat(cli): do not ask for confirmation (#1554) * feat(cli): do not confirm * chore: add changeset --- .changeset/nice-icons-battle.md | 5 +++++ packages/cli/src/commands/add.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/nice-icons-battle.md diff --git a/.changeset/nice-icons-battle.md b/.changeset/nice-icons-battle.md new file mode 100644 index 00000000000..867a7c12eff --- /dev/null +++ b/.changeset/nice-icons-battle.md @@ -0,0 +1,5 @@ +--- +"shadcn-ui": minor +--- + +do not ask for confirmation diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 8f2a86964ca..d8bd7dfbc2a 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -32,7 +32,7 @@ export const add = new Command() .name("add") .description("add a component to your project") .argument("[components...]", "the components to add") - .option("-y, --yes", "skip confirmation prompt.", false) + .option("-y, --yes", "skip confirmation prompt.", true) .option("-o, --overwrite", "overwrite existing files.", false) .option( "-c, --cwd ",