exit

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(err error) int

Code converts a command error into a process exit code.

func ErrorPrefix

func ErrorPrefix(err error) string

ErrorPrefix returns the user-facing prefix that should be used when printing err.

func InteractiveResult

func InteractiveResult(err error) error

InteractiveResult wraps the error returned by tui.Run so that a missing terminal surfaces as an invalid-input exit (4) instead of a generic failure. Other errors flow through unchanged.

func InvalidInputError

func InvalidInputError(format string, args ...any) error

func PolicyViolationFindings

func PolicyViolationFindings(count int) error

func ResolutionFailureError

func ResolutionFailureError(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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