cli

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 59 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.13.7"

Functions

This section is empty.

Types

type Global

type Global struct {
	ProjectRoot    string
	DefinitionRoot string
	WorkspaceRoot  string
	Env            string // environment name/path; resolved before binding fallthrough
	Quiet          bool
	NoProgress     bool
	Yolo           bool
	Mode           string
	Debug          bool
	Proxy          bool
	StrictExternal bool
}

type Invocation

type Invocation struct {
	Global  Global
	Command string
	Args    []string
}

func Parse

func Parse(arguments []string) (Invocation, error)

Parse removes global options wherever they appear before --. Remaining arguments are deliberately left untouched for command-specific parsing and harness passthrough.

type Runner

type Runner struct {
	Stdout, Stderr io.Writer
	Stdin          io.Reader
	Service        packSync.Service
	Launch         func(*os.Process) (func(), error)
}

func NewRunner

func NewRunner() Runner

func (Runner) Execute

func (runner Runner) Execute(ctx context.Context, arguments []string) (int, error)

Execute runs agentpack through Cobra's command model and Fang's terminal presentation. Runner.Run remains the behavior boundary; the command model owns discovery, contextual help, completion, version, and error rendering.

func (Runner) Run

func (runner Runner) Run(ctx context.Context, arguments []string) (int, error)

Jump to

Keyboard shortcuts

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