ValueError: 'hide' got '' which is not in (None, False, 'out', 'stdout', 'err', 'stderr', 'both', True)
... or ...
ValueError: 'hide' got 'None' which is not in (None, False, 'out', 'stdout', 'err', 'stderr', 'both', True)
I believe this is because the type casting behavior sees the current setting 'out' and so expects a string, but the only way to disable hide is with a bool or None.
Suggestion
If you add 'None' or 'False' string options to the acceptable values for hide to disable hiding, it will be possible to override it.
I wanted my typical calls to tasks to show commands but hide command output, so I've configured defaults:
However, I cannot override this value to disable hiding in certain cases, like my CI/CD pipelines. All of these fail with the exception below:
I believe this is because the type casting behavior sees the current setting
'out'
and so expects a string, but the only way to disablehide
is with a bool or None.Suggestion
If you add
'None'
or'False'
string options to the acceptable values forhide
to disable hiding, it will be possible to override it.