Skip to content

Commit 2f0dbca

Browse files
authored
feat(cli): do not ask for confirmation (#1554)
* feat(cli): do not confirm * chore: add changeset
1 parent 58d012e commit 2f0dbca

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/nice-icons-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"shadcn-ui": minor
3+
---
4+
5+
do not ask for confirmation

packages/cli/src/commands/add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const add = new Command()
3232
.name("add")
3333
.description("add a component to your project")
3434
.argument("[components...]", "the components to add")
35-
.option("-y, --yes", "skip confirmation prompt.", false)
35+
.option("-y, --yes", "skip confirmation prompt.", true)
3636
.option("-o, --overwrite", "overwrite existing files.", false)
3737
.option(
3838
"-c, --cwd <cwd>",

0 commit comments

Comments
 (0)