exit

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 NothingToEvaluateError added in v0.14.17

func NothingToEvaluateError(err error) error

NothingToEvaluateError marks the benign "no resolvable targets" outcome — no subprojects/manifests were discovered for the target (with the applied filters). It is deliberately distinct from ResolutionFailureError (exit 3, a real error where a discovered subproject could not be turned into a graph) so CI wrappers can treat "nothing to scan" as a neutral pass without masking genuine resolution failures.

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