exitcodes

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: ISC Imports: 0 Imported by: 0

Documentation

Overview

Package exitcodes defines standardized exit codes for plakar CLI.

Codes follow sysexits.h(3) conventions where applicable. See sysexits(3) for background on the standard exit code ranges.

Index

Constants

View Source
const (
	// Success indicates the command completed successfully.
	Success = 0

	// Failure is a general error not covered by a more specific code.
	Failure = 1

	// Usage indicates invalid command-line arguments or flags.
	// Corresponds to EX_USAGE from sysexits.h.
	Usage = 64

	// RepoNotFound indicates the repository could not be opened or located.
	// Corresponds to EX_NOINPUT from sysexits.h.
	RepoNotFound = 66

	// RepoIncompatible indicates a repository version mismatch.
	// Corresponds to EX_CONFIG from sysexits.h.
	RepoIncompatible = 78

	// AuthFailure indicates an authentication or decryption error
	// (wrong passphrase, missing keyfile, locked repository).
	// Corresponds to EX_NOPERM from sysexits.h.
	AuthFailure = 77

	// IntegrityFailure indicates a data integrity check failed
	// (corrupted chunks, Merkle tree mismatch).
	// Corresponds to EX_DATAERR from sysexits.h.
	IntegrityFailure = 65
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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