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

init flag is overwriting main without prompting about it #112

Open
Muskra opened this issue Oct 9, 2024 · 1 comment
Open

init flag is overwriting main without prompting about it #112

Muskra opened this issue Oct 9, 2024 · 1 comment

Comments

@Muskra
Copy link

Muskra commented Oct 9, 2024

Hello there,

I used the init flag to init the library and the script seem's to overwrite the main file without prompting about it. It's annoying behaviors and should be explicit and/or appending to the file to prevent any issues.

Is it possible to add an alert message with a user validation ?

A '--force' flag could be added too incase the user want's to overwrite without prompting.

Thanks for considering.

@RaphaelPour
Copy link

+1

Broke my neck a few times when I missed to setup a git repo beforehand. I always forget that cobra-cli is doing that 😅

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