Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CodeOK means the run completed or a help or version request was served. CodeOK = 0 // CodeErr covers failures with no more specific code. CodeErr = 1 // CodeNoClaude means the claude binary was not found. CodeNoClaude = 2 // CodeNoRepo means the working directory is not inside a git repository. CodeNoRepo = 3 // CodeRepoState means the repository is mid-rebase, mid-merge, or mid-cherry-pick. CodeRepoState = 4 )
Exit codes returned by Execute. Once claude starts, its own exit code is mirrored instead.
Variables ¶
View Source
var ( // ErrNoClaude reports that the claude binary could not be resolved. ErrNoClaude = errors.New("claude cli not found") // ErrNoRepo reports that the working directory is not in a git repository. ErrNoRepo = errors.New("not inside a git repository") // ErrRepoState reports a repository mid-rebase, mid-merge, or mid-cherry-pick. ErrRepoState = errors.New("repository has an operation in progress") // ErrUsage reports invalid wrapper arguments. ErrUsage = errors.New("invalid arguments") )
Sentinel errors for preflight failures. Execute maps them to exit codes.
View Source
var Version = "0.11.0"
Version is the CLI version. Keep in step with .claude-plugin/plugin.json, or override at build time with -ldflags "-X github.com/dcadolph/preen/cmd.Version=<v>".
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.