runtime

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func IsKnownShell(arg string) bool

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 Kind

type Kind int

Kind identifies which executor runs a task body.

const (
	KindShell  Kind = iota // mvdan/sh (default, never the system shell)
	KindInterp             // temp-file + exec a real interpreter
	KindAgent              // drive an installed agent CLI (US4)
)

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

func Select(task *ast.Task, settings config.Settings) Selection

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL