Help us shape the future of Go! Take the 2026 Go Developer Survey

exitcode

package
v0.2.25 Latest Latest
Warning

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

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

Documentation

Overview

Package exitcode defines axx's process exit codes.

These values are a public contract (see docs/adr/0003-cli-contract.md): scripts, CI systems and coding agents branch on them, so they never change meaning once released.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int

Code is a process exit status.

const (
	// OK means every selected scenario passed (or the command succeeded).
	OK Code = 0
	// Failed means at least one scenario failed.
	Failed Code = 1
	// Usage means the command line or configuration was invalid.
	Usage Code = 2
	// Undefined means undefined or ambiguous steps, or lint errors.
	Undefined Code = 3
	// Environment means an application or dependency failed to start or stop.
	Environment Code = 4
	// Plugin is reserved: it was used by out-of-process step plugins, which
	// axx no longer has. Kept so the numbering stays stable.
	Plugin Code = 5
	// Interrupted means the run was cancelled (SIGINT/SIGTERM).
	Interrupted Code = 130
)

func (Code) String

func (c Code) String() string

String returns the stable, machine-readable name of the code.

Jump to

Keyboard shortcuts

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