Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli Non-interactive not working #5897

Closed
ibrah3m opened this issue Jan 18, 2023 · 1 comment
Closed

Cli Non-interactive not working #5897

ibrah3m opened this issue Jan 18, 2023 · 1 comment

Comments

@ibrah3m
Copy link

ibrah3m commented Jan 18, 2023

What version of astro are you using?

v16.12.0+

Are you using an SSR adapter? If so, which one?

NONE

What package manager are you using?

pnpm

What operating system are you using?

linux

Describe the Bug

I was trying to create a script to init a new Astro project in a non-interactive way in the CLI using the flag-y
and It didn't work as predicted!

example code :
pnpm create astro@latest name --template minimal -y

this is what I got :


✔ Using ASTRO_REPO as project directory.
✔ Template copied!
✔ Would you like to install pnpm dependencies? (recommended) … no
◼  No problem! Remember to install dependencies after setup.

✔ Would you like to initialize a new git repository? (optional) … no
◼  Sounds good! You can come back and run git init later.

there was a question about installing dependence and making it and it wasn't prepared for non-interactive which stopped the script from running

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-xgvx5a?file=start.sh

Participation

  • [] I am willing to submit a pull request for this issue.
@ibrah3m
Copy link
Author

ibrah3m commented Jan 19, 2023

solve #5898

@ibrah3m ibrah3m closed this as completed Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant