exitcode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package exitcode is the single home for tai's OS exit codes.

Five buckets, narrowed from sysexits.h tradition (see add-tai-foundation design.md §D4). Every code in pkg/errcode maps to exactly one of these. The CLI MUST NOT use exit codes outside this set without first extending it through an OpenSpec proposal that updates the foundation spec's "Exit-code conventions" requirement.

Index

Constants

View Source
const (
	// Success: command completed as intended.
	Success = 0

	// Usage: unknown subcommand, malformed flag, conflicting options.
	Usage = 1

	// Precondition: required context missing (e.g. repo, PR identifier).
	Precondition = 2

	// Data: invalid input payload, schema mismatch, state conflict.
	Data = 3

	// Internal: recovered panic or unanticipated I/O failure.
	Internal = 70
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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