pixi
pixi copied to clipboard
feat: add `pixi clean` command
Initial proposal Includes
pixi cleancleans environmentspixi clean -e prodcleans a environmentpixi clean cachecleans cache dirpixi clean cache --conda/--pypicleans a specific package cache
fixes: #1321
I'm not happy with the cli yet. I want env to be the default and cache being a sub command.
Edit: fixed
pixi clean task <taskname> would also be very helpful.
In some systems (e.g. doit), clean can be optionally configured to remove:
- remove all
outputsclean = true
- some specific set of files
clean = ["*.tsbuildinfo", "lib"]
- the
cleanof alldepends-onclean-depends-on = true- though maybe this would be better when a
depends-oncan be a more full task withdepends-on = [{task="build", environment="build", clean=true}]
- though maybe this would be better when a
@bollwyvl I like this idea!
@bollwyvl I gave task a try but got burned out by the complexity of the glob work. Still think it's a good idea but I want to get the simple version in first.