mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
feat: Support -y
in astro add
(#4225)
This commit is contained in:
parent
74528a1973
commit
e918b3883e
2 changed files with 6 additions and 1 deletions
5
.changeset/two-ducks-end.md
Normal file
5
.changeset/two-ducks-end.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
`astro add` now supports `-y`
|
|
@ -701,7 +701,7 @@ function parseIntegrationName(spec: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function askToContinue({ flags }: { flags: yargs.Arguments }): Promise<boolean> {
|
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({
|
const response = await prompts({
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
|
|
Loading…
Reference in a new issue