exitcode

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 5 Imported by: 0

README

exitcode example

Emits each member of the public exit-code taxonomy so orchestrators can pattern-match on $? without parsing stderr. success=0, generic=1, policy_denied=2, upstream_failed=3, internal=4, user_error=5.

$ go run ./examples/exitcode success ; echo "exit: $?"
exit: 0
$ go run ./examples/exitcode policy ; echo "exit: $?"
argv rejected
exit: 2

Documentation

Overview

Command exitcode demonstrates the public exit-code taxonomy.

Jump to

Keyboard shortcuts

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