dotbot icon indicating copy to clipboard operation
dotbot copied to clipboard

Add a Dry-run option

Open malobre opened this issue 3 years ago • 6 comments

A dry-run option would be nice (e.g: ./install --dry-run). It would allow testing new configs without wrecking your home.

malobre avatar Aug 26 '20 12:08 malobre

That looks interesting, I'd be willing to add this to Dotbot. Were you interested in submitting a PR for this? Alternatively, I can implement it at some point.

A small note, this might behave in unintuitive ways for people who are using plugins that are not aware of --dry-run. Not sure how exactly we should handle this.

anishathalye avatar Aug 27 '20 07:08 anishathalye

I could take a look, but my experience with python is close to zero. And for the plugin problem, I haven't looked at the code yet so I don't know if it is possible, but my idea was to pass along the dry-run option to the plugins that do eventually support it and to otherwise not run the plugin at all (of course with a nice logging message).

malobre avatar Aug 27 '20 12:08 malobre

Ah, maybe it makes sense for me to implement it, then. I like the idea of checking if plugins support it and skipping the plugin otherwise.

anishathalye avatar Aug 27 '20 20:08 anishathalye

@anishathalye any progress or movement on this? Would like a dry run option as well. Just got a new machine and started setting up the basics before trying out dotbot.

joeyfigaro avatar Jul 02 '21 12:07 joeyfigaro

It's on my todo list, but I haven't implemented this feature yet.

anishathalye avatar Jul 07 '21 09:07 anishathalye

@anishathalye Is this feature still on the to-do list? It would be very helpful to test your configuration.

jlumpe avatar Aug 04 '22 22:08 jlumpe