Runs named tasks with dependencies and cache integration.
Types
TaskRunOptions = object profile*: string ## Profile used by built-in task dependencies. verbose*: bool ## Whether nested commands should print details. dryRun*: bool ## Print planned work without running commands. force*: bool ## Ignore freshness and cache hits. keepGoing*: bool ## Continue independent tasks after failures. features*: FeatureSelection ## Feature selection exposed to tasks. taskArgs*: seq[string] ## Arguments passed after `bau task <name> --`.
- Options controlling task execution.
Procs
proc runTaskByName(cfg: BauConfig; name, projectDir: string; opts: TaskRunOptions): bool {....raises: [ValueError, KeyError, OSError, Exception, IOError, CatchableError, JsonParsingError], tags: [ ReadEnvEffect, ReadDirEffect, RootEffect, ReadIOEffect, WriteIOEffect, WriteEnvEffect, WriteDirEffect, ExecIOEffect, TimeEffect], forbids: [].}
-
Run a named task and its dependencies.
Returns false when one or more tasks failed under keepGoing.