cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package cli implements the stable doctor command surface without making a specific command-line framework part of the public contract.

Index

Constants

View Source
const (
	ExitSuccess            = 0
	ExitTargetFailure      = 1
	ExitInput              = 2
	ExitInfrastructure     = 3
	ExitIncomplete         = 4
	ExitPermission         = 5
	ExitBaselineRegression = 6
	ExitInterrupted        = 130
)

Variables

This section is empty.

Functions

func PrimaryExitCode

func PrimaryExitCode(conditions []int) int

func Run

func Run(ctx context.Context, args []string, dependencies Dependencies) int

Types

type Dependencies

type Dependencies struct {
	Stdout     io.Writer
	Stderr     io.Writer
	WorkingDir string
	Executable string
	LookupEnv  func(string) (string, bool)
}

Jump to

Keyboard shortcuts

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