Documentation
¶
Overview ¶
Package cmd wraps os/exec behind the Executor interface so callers that shell out (git operations, tmux calls, the claude command lookup) can be unit-tested against a fake executor without spawning real subprocesses.
The production implementation is [RealExecutor]; tests supply a mock that records invocations and returns scripted output. This is the canonical way to introduce a new shell-out in Loom — reach for this interface before calling exec.Command directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var WorkspaceCmd = &cobra.Command{
Use: "workspace",
Short: "Manage workspaces",
}
WorkspaceCmd is the parent command for workspace management.
Functions ¶
Types ¶
type Exec ¶
type Exec = internalexec.Default
Exec is the production implementation, aliased from internal/exec.Default.
type Executor ¶
type Executor = internalexec.Executor
Executor is re-exported from internal/exec so session/git and cmd share the same interface without either importing the other (cmd imports session/git already).