Occasionally catch myself doing the following:
from invoke import Collection, task
# stuff
@task
def foo(ctx, blah, otherblah):
ctx.run("whatever")
ns = Collection(foo)
Which leads to a nice 'test' did not receive all required positional arguments! error, because task != ctask. Also I think part of an FAQ mentions this (!)
If it's something I do myself cuz I haven't written a new Invoke task in a month...it's gonna bite users. The un-contextualized use case is and should be the minority; therefore I really should:
Occasionally catch myself doing the following:
Which leads to a nice
'test' did not receive all required positional arguments!error, becausetask!=ctask. Also I think part of an FAQ mentions this (!)If it's something I do myself cuz I haven't written a new Invoke task in a month...it's gonna bite users. The un-contextualized use case is and should be the minority; therefore I really should:
@ctask.