cli

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package cli wires the four commands and owns the exit-code contract (R-17). Distinct, documented, scriptable:

0  success — applied, or audit found nothing
1  no-op — nothing to change
2  refused — would violate INV-1 or INV-2 (or S-4 size cap)
3  invalid input — malformed op, unresolvable scope, conflicting batch
4  audit findings present
5  inconclusive — API unavailable, token insufficient, rate limited (R-12)
6  validation failed post-write; rolled back

Index

Constants

View Source
const (
	ExitOK           = 0
	ExitNoOp         = 1
	ExitRefused      = 2
	ExitInvalid      = 3
	ExitFindings     = 4
	ExitInconclusive = 5
	ExitValidation   = 6
)

Exit codes (R-17).

Variables

This section is empty.

Functions

func Run

func Run(argv []string, stdout, stderr io.Writer) int

Run executes argv (without the program name) and returns the exit code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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