Hello,
I have a use case for invoke for which I can't figure out a clean solution: I need to launch a process in the background, run my main task, and then kill the background process.
In a standard CLI, I simply do:
$ background_process &
$ main_task
$ kill %1
Ideally, I'd like to do this with an invoke context:
c = invoke.context.Context()
with c.background_prefix('background_process'):
c.run('main_task')
Would this be already possible? If no, could this be a possible new feature?
Hello, I have a use case for invoke for which I can't figure out a clean solution: I need to launch a process in the background, run my main task, and then kill the background process. In a standard CLI, I simply do:
Ideally, I'd like to do this with an invoke context:
Would this be already possible? If no, could this be a possible new feature?