doot.cmds.stub_cmd
Type Aliases
Classes
Mixin for stubbing the doot.toml file |
|
Mixin for stubbing a cli parameter |
|
Mixin for stubbing an action |
|
Mixin for stubbing a task |
|
Mixin for stubbing printer config |
|
Called to interactively create a stub task definition |
Module Contents
- doot.cmds.stub_cmd.ListVal: TypeAlias = str | Lambda | tuple[str, dict]
- class doot.cmds.stub_cmd._StubTask_m[source]
Mixin for stubbing a task
- _stub_task_toml(
- idx: int,
- tasks: jgdv.structs.chainguard.ChainGuard,
- plugins: jgdv.structs.chainguard.ChainGuard,
This creates a toml stub using default values, as best it can
- _add_ctor_specific_stub_fields(
- idx: int,
- stub: doot.cmds.structs.TaskStub,
add ctor specific fields, such as for dir_walker: roots [], exts [], recursive bool, subtask “”, head_task “” works towards the task_type, not away, so more specific elements are added over the top of more general elements
- Parameters:
idx (int)
stub (doot.cmds.structs.TaskStub)
- Return type:
None
- class doot.cmds.stub_cmd.StubCmd(name: jgdv.Maybe[str] = None)[source]
Bases:
doot.cmds._base.BaseCommandCalled to interactively create a stub task definition with a target, outputs to that file, else to stdout for piping
- Parameters:
name (jgdv.Maybe[str])
- _name = 'stub'
- _help = ('Create a new stub task either to stdout, or path', 'args allow stubbing a config file, cli...