cmd

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func ExitCodeOf added in v0.2.14

func ExitCodeOf(err error) int

ExitCodeOf returns the exit code embedded in err (or any wrapper in its chain), defaulting to 1 if none is present.

func RegisterCleanup

func RegisterCleanup(fn func())

RegisterCleanup adds a cleanup function to be called on program termination

Types

type APIConfig

type APIConfig struct {
	Mode        agent.APIMode
	APIKey      string // For direct mode (BYOK)
	BearerToken string // For proxy mode
	URL         string // Base URL for proxy mode
}

APIConfig holds the configuration for connecting to the LLM API

type CIMetadata

type CIMetadata struct {
	CommitSha          string
	PRNumber           string
	BranchName         string
	ExternalCheckRunID string
}

type ExitCodeError added in v0.2.14

type ExitCodeError struct {
	Code int
	Err  error
}

ExitCodeError wraps an error with a specific process exit code. main.go unwraps this to pick the right os.Exit value; without it, Cobra-returned errors map to exit 1.

func (*ExitCodeError) Error added in v0.2.14

func (e *ExitCodeError) Error() string

func (*ExitCodeError) Unwrap added in v0.2.14

func (e *ExitCodeError) Unwrap() error

Jump to

Keyboard shortcuts

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