Skip to content

Commit

Permalink
feat(cli): do not ask for confirmation (#1554)
Browse files Browse the repository at this point in the history
* feat(cli): do not confirm

* chore: add changeset
  • Loading branch information
shadcn committed Sep 19, 2023
1 parent 58d012e commit 2f0dbca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-icons-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-ui": minor
---

do not ask for confirmation
2 changes: 1 addition & 1 deletion packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cwd>",
Expand Down

0 comments on commit 2f0dbca

Please sign in to comment.