cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitOK              = 0
	ExitRuntimeError    = 1
	ExitInsecure        = 2
	ExitRevocationError = 3
	ExitExpiring        = 4
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type ExitTracker added in v1.0.0

type ExitTracker struct {
	// contains filtered or unexported fields
}

func NewExitTracker added in v1.0.0

func NewExitTracker() *ExitTracker

func (*ExitTracker) Code added in v1.0.0

func (t *ExitTracker) Code() int

func (*ExitTracker) Reset added in v1.0.0

func (t *ExitTracker) Reset()

func (*ExitTracker) Set added in v1.0.0

func (t *ExitTracker) Set(code int)

type Runtime added in v1.0.0

type Runtime struct {
	Stdout      io.Writer
	Stderr      io.Writer
	Now         func() time.Time
	ExitTracker *ExitTracker
}

Runtime holds shared runtime dependencies for CLI commands.

func NewRuntime added in v1.0.0

func NewRuntime() *Runtime

func (*Runtime) NowFunc added in v1.0.0

func (r *Runtime) NowFunc() time.Time

Jump to

Keyboard shortcuts

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