package clihelper

// Constants for exit codes.
const (
	ExitCodeSuccess ExitCode = iota
	ExitCodeGeneralError
)

// ExitCode is a number between 0 and 255, which is returned by any Unix command when it returns control to its parent process.
type ExitCode byte

// ExitCoder is the interface checked by `App` and `Command` for a custom exit code.
type ExitCoder interface {
	error
	ExitCode() int
	Unwrap() error
}
