Hi there,
I am new to invoke so please forgive my inexperience.
I am trying to set up several @tasks but I would like to be able to execute them from within a Python script.
There is plenty of excllent documentation on how to execute a task from the command line, but is this possible from within a script?
I can certainly execute a system command using invoke.runner.run('ls -la'), but if I had the task
@task
def mytask():
run("ls -la")
how could I use invoke to call mytask from inside a script?
Hi there,
I am new to
invokeso please forgive my inexperience.I am trying to set up several
@tasks but I would like to be able to execute them from within aPythonscript.There is plenty of excllent documentation on how to execute a task from the command line, but is this possible from within a script?
I can certainly execute a system command using
invoke.runner.run('ls -la'), but if I had the taskhow could I use
invoketo callmytaskfrom inside a script?