cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "unknown"
)

Version and Commit are set at build time via -ldflags.

View Source
var EmbeddedCommands embed.FS

EmbeddedCommands holds the embedded Claude Code command files. Set by main.go before Execute().

Functions

func Execute

func Execute() error

Execute runs the root command.

Types

type InboxPR

type InboxPR struct {
	Number       int    `json:"number"`
	Title        string `json:"title"`
	Author       string `json:"author"`
	URL          string `json:"url,omitempty"`
	MatchedPaths string `json:"matched_paths,omitempty"`
	MatchedCount int    `json:"matched_count,omitempty"`
}

InboxPR holds a pending PR for display/JSON output.

type ReviewEntry

type ReviewEntry struct {
	worktree.Worktree
	Title      string `json:"title,omitempty"`
	HasSession bool   `json:"has_active_session"`
}

ReviewEntry holds enriched review data for JSON output.

type ReviewResult

type ReviewResult struct {
	WorktreePath string `json:"worktree_path"`
	PRNumber     int    `json:"pr_number"`
	Title        string `json:"title"`
	Author       string `json:"author"`
}

ReviewResult holds the output for --json mode.

type SearchResult

type SearchResult struct {
	Name       string `json:"name"`
	Path       string `json:"path,omitempty"`
	Type       string `json:"type"`
	PRNumber   int    `json:"pr_number,omitempty"`
	Branch     string `json:"branch,omitempty"`
	Repo       string `json:"repo,omitempty"`
	HasSession bool   `json:"has_session"`
}

SearchResult holds a search result.

type StatusData

type StatusData struct {
	Worktrees    *worktree.Stats     `json:"worktrees"`
	PRReviews    []StatusPRReview    `json:"pr_reviews"`
	Features     []worktree.Worktree `json:"features"`
	DaemonStatus string              `json:"daemon_status"`
	DaemonPID    string              `json:"daemon_pid,omitempty"`
}

StatusData holds the structured status output.

type StatusPRReview

type StatusPRReview struct {
	worktree.Worktree
	Title     string `json:"title,omitempty"`
	State     string `json:"state,omitempty"`
	AgeDays   int    `json:"age_days"`
	CleanupIn int    `json:"cleanup_in_days,omitempty"`
}

StatusPRReview enriches a worktree with remote PR state and cleanup info.

type WorkEntry

type WorkEntry struct {
	wt.Worktree
	HasSession bool `json:"has_active_session"`
}

WorkEntry holds enriched feature work data for JSON output.

Jump to

Keyboard shortcuts

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