cmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 37 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 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     []StatusFeature  `json:"features"`
	DaemonStatus string           `json:"daemon_status"`
	DaemonPID    string           `json:"daemon_pid,omitempty"`
}

StatusData holds the structured status output.

type StatusFeature added in v0.7.0

type StatusFeature struct {
	worktree.Worktree
	AgeDays       int    `json:"age_days"`
	AgeStr        string `json:"age_str"`
	HasSession    bool   `json:"has_session"`
	Running       bool   `json:"running"`
	SessionStatus string `json:"session_status,omitempty"` // "running", "waiting", "stopped", or ""
}

StatusFeature enriches a feature worktree with session and age info.

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