cli

package
v0.4.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ExitOK            = 0
	ExitGateFailed    = 1
	ExitOperatorError = 2
)

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented yet")
)
View Source
var Version = "dev"

Version is set by the linker at release time via -ldflags.

Functions

func Execute

func Execute(ctx context.Context) int

Execute parses argv and runs the appropriate command, returning a process exit code.

Types

type ExitError

type ExitError struct {
	Code int
	Err  error
}

ExitError wraps an error with an explicit process exit code.

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) ExitCode

func (e *ExitError) ExitCode() int

func (*ExitError) Unwrap

func (e *ExitError) Unwrap() error

Jump to

Keyboard shortcuts

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