cli

package
v0.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 84 Imported by: 0

Documentation

Overview

Package cli implements the baum command-line interface.

Index

Constants

View Source
const (
	ExitFailure    = 1
	ExitInput      = 2
	ExitBackend    = 3
	ExitBudget     = 4
	ExitValidation = 5
	// ExitDiagnostics is "baum internal doctor" finding at least one problem.
	ExitDiagnostics = 6
	ExitInterrupted = 130
)

Exit codes of the command line. Failures of "baum internal generate" carry one of the named categories; everything else, a bad command or a failure of another command, exits with ExitFailure.

Variables

This section is empty.

Functions

func ExitCode

func ExitCode(err error) int

ExitCode is the process exit code for the error Run returned; nil is 0.

func Quiet

func Quiet(err error) bool

Quiet reports whether err must not be printed: a delegated agent hook's status, whose output belongs to the agent.

func Run

func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) error

Run dispatches args to the matching subcommand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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