cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, args []string, in io.Reader, out, errOut io.Writer) error

func NewRootCommand

func NewRootCommand(ctx context.Context, deps Dependencies) *cobra.Command

Types

type ClaudeEnvironment added in v0.1.3

type ClaudeEnvironment struct {
	Set   []string
	Unset []string
}

type ClaudeLauncher

type ClaudeLauncher interface {
	Start(ctx context.Context, args []string, env ClaudeEnvironment, in io.Reader, out, errOut io.Writer) (ClaudeProcess, error)
}

type ClaudeProcess

type ClaudeProcess interface {
	PID() int
	// Done returns one completion result for the owned process. Stop must cause
	// this channel to become ready when process termination succeeds.
	Done() <-chan error
	Stop() error
}

type Dependencies

type Dependencies struct {
	In                     io.Reader
	Out                    io.Writer
	Err                    io.Writer
	Secrets                secret.Backend
	Launcher               ClaudeLauncher
	StartGateway           func(context.Context, gateway.Config) (*gateway.Server, error)
	StartManagedCUA        func(context.Context, managedCUAStart) (*managedCUALaunch, error)
	ValidateExternalCUAURL func(context.Context, string) error
}

type ExecClaudeLauncher

type ExecClaudeLauncher struct{}

func (ExecClaudeLauncher) Start

func (ExecClaudeLauncher) Start(ctx context.Context, args []string, env ClaudeEnvironment, in io.Reader, out, errOut io.Writer) (ClaudeProcess, error)

Jump to

Keyboard shortcuts

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