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

feat: bail out when initializing new project to pre-existing directories #1036

Merged
merged 5 commits into from
Mar 4, 2020

Conversation

Esemesek
Copy link
Member

@Esemesek Esemesek commented Mar 4, 2020

Summary:

Initializing to the pre-existing directory was all about removing all the files in that directory. This approach doesn't make much sense from user perspective as it might lead to unexpected/accidental removals (even though we ask). From now on, we just fail when the directory exists and we leave it up to the user what to do with that.

@Esemesek Esemesek changed the title fix: init with directory option set to . imp: remove initializing new project to pre-existing directories Mar 4, 2020
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@thymikee thymikee changed the title imp: remove initializing new project to pre-existing directories feat: bail out when initializing new project to pre-existing directories Mar 4, 2020
@thymikee thymikee merged commit 5ac4791 into master Mar 4, 2020
@thymikee thymikee deleted the fix-init-dir branch March 4, 2020 20:37
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

Successfully merging this pull request may close these issues.

2 participants