cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package cli implements the administrative command-line workflow.

Index

Constants

View Source
const (
	// ExitOK reports a successful administrative operation.
	ExitOK = 0
	// ExitFailure reports an API or output failure.
	ExitFailure = 1
	// ExitUsage reports invalid command-line input.
	ExitUsage = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

API is the bounded administrative surface consumed by the CLI.

type Runner

type Runner struct {
	Client API
	Stdout io.Writer
	Stderr io.Writer
	Now    func() time.Time
	// contains filtered or unexported fields
}

Runner executes CLI arguments against an administrative API client.

func (Runner) Run

func (r Runner) Run(ctx context.Context, args []string) int

Run executes one diagnostic or mutating command and returns a process code.

Jump to

Keyboard shortcuts

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