rip
rip copied to clipboard
rip uninstall --recursive and --safe
Would be nice to have a --recursive option which uninstalls a package and all its dependencies, including dependencies of dependencies. Perhaps using ambition as the testcase.
Also, would be nice to have a --safe option which doesn't uninstall a package if it's a dependency for another package. Not sure if there are any fixtures to use as a testcase.
Currently. I have both options working locally as boson commands. Interested in either if I were to patch them into rip-uninstall?
Sounds good.
I think --safe as you described should be the default. The current behavior should be --force -f. A include safe dependencies, --dependencies, -d would be handy too.
I added aborting if a package is a dependency and the force option: branch.
As for --dependencies (--recursive), since I need to uninstall multiple packages should I move rip-uninstall to a separate executable (rip-uninstall-single) to preserve uninstalling one package or should I make the existing executable one big method? I'm guessing the former.