cmd

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPromptFile added in v0.22.0

func FindPromptFile(ctx context.Context, dir, id string) (string, error)

FindPromptFile finds a prompt file by id in dir, supporting: - absolute or relative path with directory component (checked directly) - exact filename with .md extension - filename without .md extension - numeric prefix match (e.g. "122" matches "122-some-name.md")

func FindSpecFile added in v0.20.0

func FindSpecFile(ctx context.Context, specsDir, id string) (string, error)

FindSpecFile finds a spec by absolute/relative path, exact filename, or numeric prefix match within specsDir.

func FindSpecFileInDirs added in v0.20.5

func FindSpecFileInDirs(ctx context.Context, id string, dirs ...string) (string, error)

FindSpecFileInDirs searches dirs in order and returns the first match. Falls back to the existing FindSpecFile logic for each dir.

Types

type ApproveCommand added in v0.17.15

type ApproveCommand interface {
	Run(ctx context.Context, args []string) error
}

ApproveCommand executes the approve subcommand.

func NewApproveCommand added in v0.17.15

func NewApproveCommand(
	inboxDir string,
	queueDir string,
	promptManager prompt.Manager,
) ApproveCommand

NewApproveCommand creates a new ApproveCommand.

type CombinedListCommand added in v0.17.25

type CombinedListCommand interface {
	Run(ctx context.Context, args []string) error
}

CombinedListCommand shows combined prompt and spec list.

func NewCombinedListCommand added in v0.17.25

func NewCombinedListCommand(
	inboxDir string,
	queueDir string,
	completedDir string,
	lister spec.Lister,
	counter prompt.Counter,
) CombinedListCommand

NewCombinedListCommand creates a new CombinedListCommand.

type CombinedStatusCommand added in v0.17.25

type CombinedStatusCommand interface {
	Run(ctx context.Context, args []string) error
}

CombinedStatusCommand shows combined prompt and spec status.

func NewCombinedStatusCommand added in v0.17.25

func NewCombinedStatusCommand(
	checker status.Checker,
	formatter status.Formatter,
	lister spec.Lister,
	counter prompt.Counter,
) CombinedStatusCommand

NewCombinedStatusCommand creates a new CombinedStatusCommand.

type ListCommand added in v0.17.15

type ListCommand interface {
	Run(ctx context.Context, args []string) error
}

ListCommand executes the list subcommand.

func NewListCommand added in v0.17.15

func NewListCommand(
	inboxDir string,
	queueDir string,
	completedDir string,
) ListCommand

NewListCommand creates a new ListCommand.

type PromptEntry added in v0.17.15

type PromptEntry struct {
	Status string `json:"status"`
	File   string `json:"file"`
}

PromptEntry represents a single prompt entry in the list output.

type QueueCommand added in v0.10.0

type QueueCommand interface {
	Run(ctx context.Context, args []string) error
}

QueueCommand executes the queue subcommand.

func NewQueueCommand added in v0.10.0

func NewQueueCommand(
	inboxDir string,
	queueDir string,
	promptManager prompt.Manager,
) QueueCommand

NewQueueCommand creates a new QueueCommand.

type RequeueCommand added in v0.17.15

type RequeueCommand interface {
	Run(ctx context.Context, args []string) error
}

RequeueCommand executes the requeue subcommand.

func NewRequeueCommand added in v0.17.15

func NewRequeueCommand(queueDir string) RequeueCommand

NewRequeueCommand creates a new RequeueCommand.

type SpecApproveCommand added in v0.17.23

type SpecApproveCommand interface {
	Run(ctx context.Context, args []string) error
}

SpecApproveCommand executes the spec approve subcommand.

func NewSpecApproveCommand added in v0.17.23

func NewSpecApproveCommand(inboxDir string, inProgressDir string) SpecApproveCommand

NewSpecApproveCommand creates a new SpecApproveCommand.

type SpecEntry added in v0.17.23

type SpecEntry struct {
	Status           string `json:"status"`
	File             string `json:"file"`
	PromptsCompleted int    `json:"prompts_completed"`
	PromptsTotal     int    `json:"prompts_total"`
}

SpecEntry represents a single spec entry in the list output.

type SpecListCommand added in v0.17.23

type SpecListCommand interface {
	Run(ctx context.Context, args []string) error
}

SpecListCommand executes the spec list subcommand.

func NewSpecListCommand added in v0.17.23

func NewSpecListCommand(lister specpkg.Lister, counter prompt.Counter) SpecListCommand

NewSpecListCommand creates a new SpecListCommand.

type SpecStatusCommand added in v0.17.23

type SpecStatusCommand interface {
	Run(ctx context.Context, args []string) error
}

SpecStatusCommand executes the spec status subcommand.

func NewSpecStatusCommand added in v0.17.23

func NewSpecStatusCommand(lister spec.Lister, counter prompt.Counter) SpecStatusCommand

NewSpecStatusCommand creates a new SpecStatusCommand.

type SpecVerifyCommand added in v0.18.6

type SpecVerifyCommand interface {
	Run(ctx context.Context, args []string) error
}

SpecVerifyCommand executes the spec verify subcommand.

func NewSpecVerifyCommand added in v0.18.6

func NewSpecVerifyCommand(inboxDir, inProgressDir, completedDir string) SpecVerifyCommand

NewSpecVerifyCommand creates a new SpecVerifyCommand.

type StatusCommand

type StatusCommand interface {
	Run(ctx context.Context, args []string) error
}

StatusCommand executes the status subcommand.

func NewStatusCommand

func NewStatusCommand(checker status.Checker, formatter status.Formatter) StatusCommand

NewStatusCommand creates a new StatusCommand.

Jump to

Keyboard shortcuts

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