0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

feat: Support -y in astro add (#4225)

This commit is contained in:
Mayank 2022-08-10 00:29:51 -04:00 committed by GitHub
parent 74528a1973
commit e918b3883e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
`astro add` now supports `-y`

View file

@ -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',