Documentation
¶
Index ¶
- type Executor
- func (e *Executor) GetArtifactsFS(ui core.UI) (fs.FS, error)
- func (e *Executor) GetKitFS(ui core.UI) (fs.FS, error)
- func (e *Executor) HandleArchive(ctx context.Context, ui core.UI, args ...string) error
- func (e *Executor) HandleArchiveInstructions(ctx context.Context, ui core.UI) error
- func (e *Executor) HandleConsole(ctx context.Context, ui core.UI) error
- func (e *Executor) HandleConstitution(ctx context.Context, ui core.UI, args ...string) error
- func (e *Executor) HandleConstitutionArtifact(ctx context.Context, ui core.UI, slug string, jsonMode bool) error
- func (e *Executor) HandleConstitutionStatus(ctx context.Context, ui core.UI, jsonMode bool) error
- func (e *Executor) HandleHelp()
- func (e *Executor) HandleImplementation(ctx context.Context, ui core.UI, args ...string) error
- func (e *Executor) HandleImplementationStatus(ctx context.Context, ui core.UI, slug string, jsonMode bool) error
- func (e *Executor) HandleImplementationUpdate(ctx context.Context, ui core.UI, slug, taskId, status string) error
- func (e *Executor) HandleInit(ctx context.Context, ui core.UI, agents ...string) error
- func (e *Executor) HandleInstall(ctx context.Context, ui core.UI) error
- func (e *Executor) HandleSpec(ctx context.Context, ui core.UI, args ...string) error
- func (e *Executor) HandleSpecArchive(ctx context.Context, ui core.UI, slug string, force bool) error
- func (e *Executor) HandleSpecArtifact(ctx context.Context, ui core.UI, slug string, jsonMode bool) error
- func (e *Executor) HandleSpecInit(ctx context.Context, ui core.UI, slug string, jsonMode bool) error
- func (e *Executor) HandleSpecList(ctx context.Context, ui core.UI, jsonMode bool) error
- func (e *Executor) HandleSpecStatus(ctx context.Context, ui core.UI, slug string, jsonMode bool) error
- func (e *Executor) HandleUnknown(command string)
- func (e *Executor) ListArtifacts(ui core.UI, registry *constitution.Registry, jsonMode bool) error
- func (e *Executor) ListSpecArtifacts(ui core.UI, registry *spec.Registry, jsonMode bool) error
- func (e *Executor) PrintUsage()
- func (e *Executor) ResolveSelectedAgents(ctx context.Context, ui core.UI, agents ...string) ([]string, error)
- func (e *Executor) RunConsole(ctx context.Context, ui core.UI) error
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 ¶
NewExecutor creates a new CLI executor.
func (*Executor) HandleArchive ¶
HandleArchive dispatches to the correct archive sub-command.
func (*Executor) HandleArchiveInstructions ¶
HandleArchiveInstructions processes the 'archive instructions' command.
func (*Executor) HandleConsole ¶
func (*Executor) HandleConstitution ¶
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 ¶
HandleConstitutionStatus processes the 'constitution status' command.
func (*Executor) HandleHelp ¶
func (e *Executor) HandleHelp()
func (*Executor) HandleImplementation ¶
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 (*Executor) HandleInstall ¶
func (*Executor) HandleSpec ¶
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 ¶
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 (*Executor) ListArtifacts ¶
ListArtifacts lists all available constitution artifacts.
func (*Executor) ListSpecArtifacts ¶
ListSpecArtifacts lists all available spec artifacts.
func (*Executor) PrintUsage ¶
func (e *Executor) PrintUsage()