Open arichiardi opened 4 years ago
It's a bug. It seems the exit code was never handled by "clean" command.
Any hint on an entry point for starting to have a look at this? I am pretty new to the code base...
1) tasks.py: Task.clean() should return the result
of the action.
2) then on cmd_clean.py make sure you get & propagate that value
That's all, really simple. But please add unit-tests.
He there! :wave:
Not sure this is a bug or a feature request or expected but...I have the following
dodo.py
Please include a minimal
dodo.py
that reproduces the problem. If relevant also include the command line used to invokedoit
.When I run this I correctly see the exit code:
But in the following, I instead see a
0
:Environment
linux
Python 3.6.10
0.32.0
I have also check the source code and it seems that while this line sets the result, this other one in clean does not.
I am also wondering if this is designed to be this way, in which case I will try to explain our use case and why we would like to see a negative exit code there :smile:
As usual, thank you! The code is very readable and so far
doit
has been very nice to use!