cli

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 21 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 added in v0.2.0

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.2.1

type ExitError struct {
	Code int
}

ExitError signals a non-zero exit code without calling os.Exit directly. This allows tests to observe exit codes without killing the test process.

func (*ExitError) Error added in v0.2.1

func (e *ExitError) Error() string

Jump to

Keyboard shortcuts

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