Skip to content

Commit 13ca8bd

Browse files
shadcnlloydrichards
authored andcommitted
feat(cli): do not ask for confirmation (shadcn-ui#1554)
* feat(cli): do not confirm * chore: add changeset
1 parent b6e7468 commit 13ca8bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nice-icons-battle.md

+5
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

+1-1
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)