pub fn run(
files: &[(PathBuf, TaskFile)],
name: &str,
args: &[String],
cwd: &Path,
) -> Result<ExitStatus, RunError>Expand description
Run name and its Requires: chain across the layered files, inheriting the
parent’s stdio so output streams straight through (the CLI path: a job is an
interactive command, not a captured subprocess). Dependencies run first, each
once, and each with its own defaults; only name receives args. Returns the
first failing step’s exit status, or the last step’s on full success. This is
trusted: it applies no agent gate, so a caller must not hand it a name from
an untrusted source.