cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at build time via -ldflags.

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