doot.cmds.run_cmd

Classes

RunCmd

Generic implementations of command methods

Module Contents

class doot.cmds.run_cmd.RunCmd(name: jgdv.Maybe[str] = None)[source]

Bases: doot.cmds._base.BaseCommand

Generic implementations of command methods

Parameters:

name (jgdv.Maybe[str])

_name = 'run'
_help = ('Will perform the tasks/jobs targeted.', 'Can be parameterized in a commands.run block with:',...
param_specs() list[source]

Provide parameter specs for parsing into doot.args.cmds

Return type:

list

_create_tracker_and_runner(
idx: int,
plugins: jgdv.structs.chainguard.ChainGuard,
) tuple[doot.control.tracker._interface.WorkflowTracker_p, doot.control.runner._inteface.WorkflowRunner_p][source]
Parameters:
  • idx (int)

  • plugins (jgdv.structs.chainguard.ChainGuard)

Return type:

tuple[doot.control.tracker._interface.WorkflowTracker_p, doot.control.runner._inteface.WorkflowRunner_p]

_choose_interrupt_handler(
idx: int,
) jgdv.Maybe[bool | type | ContextManager][source]
Parameters:

idx (int)

Return type:

jgdv.Maybe[bool | type | ContextManager]

_register_specs(
idx: int,
tracker: doot.control.tracker._interface.WorkflowTracker_p,
tasks: jgdv.structs.chainguard.ChainGuard,
) None[source]
Parameters:
Return type:

None

_queue_tasks(
idx: int,
tracker: doot.control.tracker._interface.WorkflowTracker_p,
) None[source]
Parameters:
Return type:

None

_confirm_plan(
idx: int,
runner: doot.control.runner._inteface.WorkflowRunner_p,
) bool[source]

Generate and Confirm the plan from the tracker

Parameters:
  • idx (int)

  • runner (doot.control.runner._inteface.WorkflowRunner_p)

Return type:

bool

_accept_subcmds() Literal[True][source]
Return type:

Literal[True]