rip icon indicating copy to clipboard operation
rip copied to clipboard

rip uninstall --recursive and --safe

Open cldwalker opened this issue 14 years ago • 2 comments

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?

cldwalker avatar Jul 31 '10 09:07 cldwalker

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.

josh avatar Aug 01 '10 15:08 josh

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.

cldwalker avatar Aug 25 '10 09:08 cldwalker