typac icon indicating copy to clipboard operation
typac copied to clipboard

[FEATURE REQUEST] Uninstall packages

Open scoobster17 opened this issue 3 years ago • 1 comments

As far as I can see from the README it seems typac - an awesome tool I've just discovered - doesn't have the corresponding uninstall functionality.

In my experience, there are a few use cases for this:

  • sometimes in a mature project packages are uninstalled but their types are forgotten amongst a long list of dependencies.
  • you install a package by mistake, e.g. typo
  • you're experimenting / in get s*** done mode and installing many varieties of packages (all doing the same thing) just trying to get something to work, then you need to do tidy up.

A respective uninstall function would be desirable.

scoobster17 avatar Sep 07 '21 12:09 scoobster17

Thanks @scoobster17 for the feedback. I agree, uninstall command would be useful, but it will be a breaking change, requiring major version update: Current usage is typac <...package names list>, and typac uninstall <...> or typac remove <...> will be non trivial (also because there is ). I can think about adding it as a flag --uninstall but I don't like that way.

I already have some thoughts about rewriting typac and publishing major 1.0.0 version, so I'll implement this feature request during rewrite.

ewgenius avatar Oct 28 '21 08:10 ewgenius