I want to automatically cast string params passed to my @tasks with a value of "null" or "Null" to None. Is this possible?
I can add this logic myself of course, but wondering if pyinvoke has any features for this.
I thought about overloading str as well, but maybe there is a feature of pyinvoke that provides hooks into tasks so I can write a sort of middle man function that is executed against the params that does custom stuff?
I want to automatically cast string params passed to my
@task
s with a value of "null" or "Null" to None. Is this possible?I can add this logic myself of course, but wondering if pyinvoke has any features for this.
I thought about overloading str as well, but maybe there is a feature of pyinvoke that provides hooks into tasks so I can write a sort of middle man function that is executed against the params that does custom stuff?