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

provide command option #61

Open
davidkhala opened this issue Jul 28, 2024 · 4 comments
Open

provide command option #61

davidkhala opened this issue Jul 28, 2024 · 4 comments

Comments

@davidkhala
Copy link

I use following line to create a project in current directory.

npm create hono@latest . -- --template nodejs --install --pm npm 

As you might feel, I want to minimize my manual input along the wizard.
But I found I cannot skip the decision of confirm to continue in this not-empty folder

create-hono version 0.10.1
✔ Using target directory … .
? Directory not empty. Continue? yes
✔ Cloning the template
✔ Installing project dependencies
🎉 Copied project files
Get started with: cd .

Did I miss something?

@ryuapp
Copy link
Contributor

ryuapp commented Jul 28, 2024

That option isn't there. Many create commands don't support it, but it might be nice to have one.
--force or --force-clone?

@davidkhala
Copy link
Author

Having --force is great enough.

@ryuapp
Copy link
Contributor

ryuapp commented Jul 30, 2024

There is a concern. This may be dangerous.
If a malicious person spreads this script with the --force flag, the contents of the user's drive may be erased.

@davidkhala
Copy link
Author

There is a concern. This may be dangerous. If a malicious person spreads this script with the --force flag, the contents of the user's drive may be erased.

This is the script user's responsibility, but not an excuse of "Not invent here".

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

2 participants