doot.control.loaders.task
Functions
|
insert the group and source into a task definition dict |
Classes
load toml defined tasks, and create doot.structs.TaskSpecs of them |
Module Contents
- doot.control.loaders.task.apply_group_and_source(
- group,
- source,
- x,
insert the group and source into a task definition dict
a task is: [[tasks.GROUP]]: name = TASKNAME …
So the group isn’t actually part of the dict. This fn adds it in, plus where the dict came from
- class doot.control.loaders.task.TaskLoader[source]
load toml defined tasks, and create doot.structs.TaskSpecs of them
- failures: dict[str | pathlib.Path, list]
- setup(
- plugins: jgdv.structs.chainguard.ChainGuard,
- extra: jgdv.Maybe[jgdv.structs.chainguard.ChainGuard] = None,
- Parameters:
plugins (jgdv.structs.chainguard.ChainGuard)
extra (jgdv.Maybe[jgdv.structs.chainguard.ChainGuard])
- Return type:
Self
- _get_raw_specs_from_data(
- data: dict,
- source: pathlib.Path | Literal['(extra)'],
extract raw task descriptions from a toplevel tasks dict, with no format checking. expects the dict to be { group_key : [ task_dict ] }
- Parameters:
data (dict)
source (pathlib.Path | Literal['(extra)'])
- Return type:
- _load_specs_from_path(path: pathlib.Path) None[source]
load a config file defined task_sources of tasks
- Parameters:
path (pathlib.Path)
- Return type:
None
- _build_task_specs(
- specs: list[dict],
- source: jgdv.Maybe[str | pathlib.Path] = None,
convert raw dicts into TaskSpec objects
- Parameters:
source (jgdv.Maybe[str | pathlib.Path])
- Return type:
None
- _load_location_updates(
- data: list[jgdv.structs.chainguard.ChainGuard],
- source: str | pathlib.Path,
- Parameters:
data (list[jgdv.structs.chainguard.ChainGuard])
source (str | pathlib.Path)
- Return type:
None