exit

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Overview

Package exit contains functions useful for exiting gracefully.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Advice added in v1.13.0

func Advice(r reason.Kind, msg string, advice string, a ...out.V)

Advice is syntactic sugar to output a message with dynamically generated advice

func Code added in v1.19.0

func Code(code int)

Code will exit with a code

func Error added in v1.13.0

func Error(r reason.Kind, msg string, err error)

Error takes a fatal error, matches it against known issues, and outputs the best message for it

func Message added in v1.13.0

func Message(r reason.Kind, format string, args ...out.V)

Message outputs a templated message and exits without interpretation

func SetShell added in v1.19.0

func SetShell(s bool)

SetShell configures if we are doing a shell configuration or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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