doot.cmds._base
Type Aliases
Classes
Generic implementations of command methods |
Module Contents
- doot.cmds._base.ListVal: TypeAlias = Maybe[str | Lambda | tuple[str, dict]]
- class doot.cmds._base.BaseCommand(name: jgdv.Maybe[str] = None)[source]
Generic implementations of command methods
- Parameters:
name (jgdv.Maybe[str])
- build_param: collections.abc.Callable
- _name = None
- param_specs() list[jgdv.cli.ParamSpec_p][source]
Provide parameter specs for parsing into doot.args.cmds
- Return type:
list[jgdv.cli.ParamSpec_p]
- _print_text(
- text: collections.abc.Iterable[ListVal],
Utility method to print text out at the user level
- Parameters:
text (collections.abc.Iterable[ListVal])
- Return type:
None
- shutdown(
- tasks: jgdv.structs.chainguard.ChainGuard,
- plugins: jgdv.structs.chainguard.ChainGuard,
- errored: jgdv.Maybe[doot.errors.DootError] = None,
- Parameters:
tasks (jgdv.structs.chainguard.ChainGuard)
plugins (jgdv.structs.chainguard.ChainGuard)
errored (jgdv.Maybe[doot.errors.DootError])
- Return type:
None