Skip to content

Commit

Permalink
feat: Support -y in astro add (#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank99 authored Aug 10, 2022
1 parent 74528a1 commit e918b38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-ducks-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

`astro add` now supports `-y`
2 changes: 1 addition & 1 deletion packages/astro/src/core/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function parseIntegrationName(spec: string) {
}

async function askToContinue({ flags }: { flags: yargs.Arguments }): Promise<boolean> {
if (flags.yes) return true;
if (flags.yes || flags.y) return true;

const response = await prompts({
type: 'confirm',
Expand Down

0 comments on commit e918b38

Please sign in to comment.