This allows users to restore all of the packages they have made changes to in their currently active virtualenv back to their original states with one command.
The following example illustrates this new functionality:
This PR introduces a shortcut to accomplish this. To restore all changed packages back to their unadulterated states, simply run:
(foo) $ envy clean --all
I feel that this is a useful feature, and am satisfied that it is production ready. However, I've had some issues adding test support for this feature-- mostly because of the heavy patching used in the tests.
This allows users to restore all of the packages they have made changes to in their currently active virtualenv back to their original states with one command.
The following example illustrates this new functionality:
(foo) $ envy edit package1/bar.py
(foo) $ envy edit package2/blah.py
After these two commands, the contents of
~/.envies/foo/
will contain a backup for bothpackage1
andpackage2
.Currently, in order to restore both
package1
andpackage2
to their original states, one would have to run twoenvy clean
commands:(foo)$ envy clean package1
(foo)$ envy clean package2
This PR introduces a shortcut to accomplish this. To restore all changed packages back to their unadulterated states, simply run:
(foo) $ envy clean --all
I feel that this is a useful feature, and am satisfied that it is production ready. However, I've had some issues adding test support for this feature-- mostly because of the heavy patching used in the tests.