Documentation
¶
Overview ¶
Package runtime selects and drives the executor for a task body: the default pure-Go shell (internal/runtime/shell), a temp-file interpreter for python/node/custom or a `set shell` override (internal/runtime/interp), or the AI-agent driver (internal/runtime/agent). A `set shell` list runs without a shell's bare -c, since the body arrives as a script file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsKnownShell ¶ added in v0.7.0
IsKnownShell reports whether arg names a shell whose -c reads its code from the next operand. Matching on the base name keeps paths and Windows names working. The analyzer uses it to decide shell bodies statically (spec 030 R7), so both agree on one list.
Types ¶
type Selection ¶
type Selection struct {
Kind Kind
Command []string // interpreter command (KindInterp): e.g. ["python3"]
Display string // human-facing name for diagnostics
}
Selection is the resolved executor for a task.
func Select ¶
Select resolves a task's executor from its declared executor, any [script("...")] attribute, and the module settings. A `set shell := [...]` override switches even default bodies to temp-file exec of the named shell. For both, a shell's command-string flag is removed so the body runs from the script file with the list's other flags (spec 029).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent runs (agent) task bodies by driving an installed agent CLI (claude/codex/copilot/…) behind a vendor-neutral Provider interface (Principle VII / FR-030).
|
Package agent runs (agent) task bodies by driving an installed agent CLI (claude/codex/copilot/…) behind a vendor-neutral Provider interface (Principle VII / FR-030). |
|
Package interp runs python/node/custom (and `set shell`-override) task bodies by writing the interpolated body to a temp file and exec-ing the configured interpreter against it (the just shebang/[script] model).
|
Package interp runs python/node/custom (and `set shell`-override) task bodies by writing the interpolated body to a temp file and exec-ing the configured interpreter against it (the just shebang/[script] model). |
|
Package scheduler builds and runs the task dependency DAG.
|
Package scheduler builds and runs the task dependency DAG. |
|
Package shell runs (sh) task bodies through the pure-Go mvdan/sh interpreter.
|
Package shell runs (sh) task bodies through the pure-Go mvdan/sh interpreter. |