cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(v, commit, date string) error

Execute runs the root command.

Types

type BuildInfo

type BuildInfo struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	Date      string `json:"date"`
	GoVersion string `json:"goVersion"`
}

BuildInfo holds version and build metadata.

type ExitError added in v0.1.1

type ExitError struct {
	Code int
}

ExitError carries a non-zero exit code without calling os.Exit directly. This allows tests to inspect exit codes without terminating the process.

func (*ExitError) Error added in v0.1.1

func (e *ExitError) Error() string

Jump to

Keyboard shortcuts

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