cli

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Version        string
	DevMode        bool
	KitRoot        string
	ArtifactsRoot  string
	Registry       *agent.Registry
	ProjectService *project.Service
	SpecService    *spec.Service
}

Executor handles the CLI command orchestration and routing.

func NewExecutor

func NewExecutor(Version string) *Executor

NewExecutor creates a new CLI executor.

func (*Executor) GetArtifactsFS

func (e *Executor) GetArtifactsFS(ui core.UI) (fs.FS, error)

func (*Executor) GetKitFS

func (e *Executor) GetKitFS(ui core.UI) (fs.FS, error)

func (*Executor) HandleArchive

func (e *Executor) HandleArchive(ctx context.Context, ui core.UI, args ...string) error

HandleArchive dispatches to the correct archive sub-command.

func (*Executor) HandleArchiveInstructions

func (e *Executor) HandleArchiveInstructions(ctx context.Context, ui core.UI) error

HandleArchiveInstructions processes the 'archive instructions' command.

func (*Executor) HandleConsole

func (e *Executor) HandleConsole(ctx context.Context, ui core.UI) error

func (*Executor) HandleConstitution

func (e *Executor) HandleConstitution(ctx context.Context, ui core.UI, args ...string) error

HandleConstitution dispatches to the correct constitution sub-command.

func (*Executor) HandleConstitutionArtifact

func (e *Executor) HandleConstitutionArtifact(ctx context.Context, ui core.UI, slug string, jsonMode bool) error

HandleConstitutionArtifact processes the 'constitution artifact' command.

func (*Executor) HandleConstitutionStatus

func (e *Executor) HandleConstitutionStatus(ctx context.Context, ui core.UI, jsonMode bool) error

HandleConstitutionStatus processes the 'constitution status' command.

func (*Executor) HandleHelp

func (e *Executor) HandleHelp()

func (*Executor) HandleImplementation

func (e *Executor) HandleImplementation(ctx context.Context, ui core.UI, args ...string) error

HandleImplementation dispatches to the correct implementation sub-command.

func (*Executor) HandleImplementationStatus

func (e *Executor) HandleImplementationStatus(ctx context.Context, ui core.UI, slug string, jsonMode bool) error

HandleImplementationStatus processes the 'implementation status' command.

func (*Executor) HandleImplementationUpdate

func (e *Executor) HandleImplementationUpdate(ctx context.Context, ui core.UI, slug, taskId, status string) error

HandleImplementationUpdate processes the 'implementation update' command.

func (*Executor) HandleInit

func (e *Executor) HandleInit(ctx context.Context, ui core.UI, agents ...string) error

func (*Executor) HandleInstall

func (e *Executor) HandleInstall(ctx context.Context, ui core.UI) error

func (*Executor) HandleSpec

func (e *Executor) HandleSpec(ctx context.Context, ui core.UI, args ...string) error

HandleSpec dispatches to the correct spec sub-command.

func (*Executor) HandleSpecArchive

func (e *Executor) HandleSpecArchive(ctx context.Context, ui core.UI, slug string, force bool) error

HandleSpecArchive processes the 'spec archive' command.

func (*Executor) HandleSpecArtifact

func (e *Executor) HandleSpecArtifact(ctx context.Context, ui core.UI, slug string, jsonMode bool) error

HandleSpecArtifact processes the 'spec artifact' command.

func (*Executor) HandleSpecInit

func (e *Executor) HandleSpecInit(ctx context.Context, ui core.UI, slug string, jsonMode bool) error

HandleSpecInit processes the 'spec init' command.

func (*Executor) HandleSpecList

func (e *Executor) HandleSpecList(ctx context.Context, ui core.UI, jsonMode bool) error

HandleSpecList processes the 'spec list' command.

func (*Executor) HandleSpecStatus

func (e *Executor) HandleSpecStatus(ctx context.Context, ui core.UI, slug string, jsonMode bool) error

HandleSpecStatus processes the 'spec status' command.

func (*Executor) HandleUnknown

func (e *Executor) HandleUnknown(command string)

func (*Executor) ListArtifacts

func (e *Executor) ListArtifacts(ui core.UI, registry *constitution.Registry, jsonMode bool) error

ListArtifacts lists all available constitution artifacts.

func (*Executor) ListSpecArtifacts

func (e *Executor) ListSpecArtifacts(ui core.UI, registry *spec.Registry, jsonMode bool) error

ListSpecArtifacts lists all available spec artifacts.

func (*Executor) PrintUsage

func (e *Executor) PrintUsage()

func (*Executor) ResolveSelectedAgents

func (e *Executor) ResolveSelectedAgents(ctx context.Context, ui core.UI, agents ...string) ([]string, error)

func (*Executor) RunConsole

func (e *Executor) RunConsole(ctx context.Context, ui core.UI) error

RunConsole launches the interactive TUI console.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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