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

Add force option #15

Open
mikepqr opened this issue Jan 28, 2017 · 4 comments
Open

Add force option #15

mikepqr opened this issue Jan 28, 2017 · 4 comments

Comments

@mikepqr
Copy link
Owner

mikepqr commented Jan 28, 2017

This should force the creation of symlinks on install.

It should delete whatever file is in the expected location on uninstall.

It should probably not delete non-empty directories on uninstall.

@hberge
Copy link

hberge commented Jul 30, 2022

Here's an idea: If the symlink target is under version control and it is checked in, I think it is more interesting to have an option to force-move the current inhabitant of the symlink location into the git repository and then create the symlink as normal. This should emit a warning and at the end a helpful suggestion for what to do about it. "review the differences; restore the file to the original, or edit and commit the changes".

@mikepqr
Copy link
Owner Author

mikepqr commented Aug 1, 2022

That would be a useful feature for some (maybe most?) users, but I am personally not planning to modify this tool to use or assume the existence of any particular version control system. It's a tool for making symlinks.

@hberge
Copy link

hberge commented Aug 2, 2022

I have made a fork here, currently for my own benefit only. Let me know if you would like a PR.

@mikepqr
Copy link
Owner Author

mikepqr commented Aug 2, 2022

Interesting! I like that you were able to break these improvements down into features that do/do not depend on version control. I'll take a closer look asap.

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