Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitFail = 1 ExitUsage = 2 ExitNoChanges = 3 ExitBusy = 75 ExitDoctorFail = 78 ExitInterrupted = 130 )
Variables ¶
View Source
var ( // Version is the semantic version (e.g., "1.0.0"). Version = "dev" // Commit is the git commit SHA. Commit = "unknown" // BuildDate is the build timestamp in RFC3339 format. BuildDate = "unknown" )
Build-time variables set via -ldflags.
Functions ¶
func NewJobLogger ¶
NewJobLogger builds a logger for oneshot maintenance jobs.
It always writes logs to stderr so stdout can be reserved for command output.
Types ¶
type CLIError ¶
CLIError represents a user-facing CLI error
type OpenLogFileError ¶
OpenLogFileError indicates the optional log file output could not be enabled.
func (*OpenLogFileError) Error ¶
func (e *OpenLogFileError) Error() string
Error formats the error message for users.
func (*OpenLogFileError) Unwrap ¶
func (e *OpenLogFileError) Unwrap() error
Unwrap returns the underlying failure.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.