pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.38k stars 367 forks source link

Doc: Extending Context/Runners/etc. #924

Open LecrisUT opened 1 year ago

LecrisUT commented 1 year ago

I am trying to extend invoke to be able to run slurm jobs, and I am slowly figuring out what I need to extend from the example of fabric. It would be nice to have this documented somewhere for other developers. So my understanding is that a common setup is to extend:

The issue currently is that it is not clear what is the minimum that we need to implement in each class. An example that could help illustrate is maybe a wrapper over Local that takes a "Hello world" message from Config, prints this message before each task/command, and prints a similar message at the start of the context setup.

Is there a matrix/IRC/Discord room to get some quick pointers for these?


Similarly, but more specific to the goal of the slurm wrapper: