Documentation
¶
Overview ¶
Package worktree implements the `aiwf worktree` verb namespace. One child today (`add`): create a git worktree and materialize aiwf's marker-managed ritual artifacts (skills, agents, templates, guidance) into it in one atomic step, so a fresh worktree never starts without them (G-0374).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(branch, path, base, root string, printPath bool, out cliutil.OutputFormat) (code int)
Run executes `aiwf worktree add`. Returns one of the cliutil.Exit* codes. Every error path writes to stderr only — never stdout — which is what makes --print-path's "nothing on stdout on failure" contract hold without a separate code path per output mode. Any failure after the git worktree itself is created rolls that worktree (and a freshly-created branch) back, so a failed run leaves no partially-materialized state behind.
Types ¶
This section is empty.