worktree

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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 NewCmd

func NewCmd(correlationID string) *cobra.Command

NewCmd builds the `aiwf worktree` parent command. Non-Runnable; dispatches to `add`.

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.

Jump to

Keyboard shortcuts

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