exit

package
v1.15.11 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OK means no error (status code 0).
	OK = iota
	// Unknown is used if we can't determine the exact exit cause.
	Unknown
	// Usage is used if there was some kind of invocation error.
	Usage
	// Aborted is used if the user willingly aborted an action.
	Aborted
	// Unsupported is used if an operation is not supported by gopass.
	Unsupported
	// AlreadyInitialized is used if someone is trying to initialize.
	// an already initialized store.
	AlreadyInitialized
	// NotInitialized is used if someone is trying to use an unitialized.
	// store.
	NotInitialized
	// Git is used if any git errors are encountered.
	Git
	// Mount is used if a substore mount operation fails.
	Mount
	// NoName is used when no name was provided for a named entry.
	NoName
	// NotFound is used if a requested secret is not found.
	NotFound
	// Decrypt is used when reading/decrypting a secret failed.
	Decrypt
	// Encrypt is used when writing/encrypting of a secret fails.
	Encrypt
	// List is used when listing the store content fails.
	List
	// Audit is used when audit report possible issues.
	Audit
	// Fsck is used when the integrity check fails.
	Fsck
	// Config is used when config errors occur.
	Config
	// Recipients is used when a recipient operation fails.
	Recipients
	// IO is used for misc. I/O errors.
	IO
	// GPG is used for misc. gpg errors.
	GPG
	// Hook is used for Hook failures.
	Hook
)

Variables

This section is empty.

Functions

func Error

func Error(exitCode int, err error, format string, args ...any) error

Error returns a user friendly CLI error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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