pub struct TaskFile { /* private fields */ }Expand description
A parsed task file: the jobs, any file-level environment hoisted to all of
them (an Env: under a section heading applies to every job regardless of
where in the document it appears; hoisting is not positional), and any parse
warnings (an unterminated fence, a duplicate job, an unknown fence language).
Parsing is infallible. A malformed file still yields what it can, so an
embedder should surface warnings() rather than trust silence. The internal
fields carry execution mechanics; a consumer reaches jobs through jobs and
job, and runs them through run, run_captured, or run_agent.
Implementations§
Source§impl TaskFile
impl TaskFile
Sourcepub fn includes_parent(&self) -> bool
pub fn includes_parent(&self) -> bool
Whether this file declared Opts: include-parent before its first task
heading, asking find_task_files to keep walking up and layer the
parent’s tasks underneath its own.