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

When uninstalling hooks, the .committee file is deleted #29

Open
scorsi opened this issue Jun 4, 2020 · 1 comment
Open

When uninstalling hooks, the .committee file is deleted #29

scorsi opened this issue Jun 4, 2020 · 1 comment

Comments

@scorsi
Copy link

scorsi commented Jun 4, 2020

I think the file shouldn't be deleted but maybe moved to .committee.backup.exs, we can add an option to committee.uninstall like --delete to delete the hooks file.

I did lost my hooks while testing them because before committing it I wanting to just deactivate committee by running mix committee.uninstall.

From my point of you, a config file shouldn't be deleted while uninstalling/removing, instead it depends of the user to do it or not.

Maybe it's just me ^^

Thanks

@edisonywh
Copy link
Owner

The idea of uninstall is to fully uninstall committee for the user, leaving a .backup.exs is going to be against that. If anything, a --backup flag to uninstall would be probably more realistic.

But, as for whether or not to remove a config file upon uninstallation, I think that is still up for discussion, though I don't really see the benefits of one vs the other.

However, when you said this:

I did lost my hooks while testing them because before committing it I wanting to just deactivate committee by running mix committee.uninstall.

Can you elaborate what you mean? Do you just want to skip the hook for a certain actions? In that case you can just pass in --no-verify, that should work. The docs could probably use some update in this regard.

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