cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCmd

func NewRootCmd(version, commit, date string) *cobra.Command

Types

type ExitError

type ExitError struct {
	Code    int
	Message string
}

ExitError wraps an exit code for CLI commands that need non-zero exits without calling os.Exit directly (which breaks testability and defers).

func (*ExitError) Error

func (e *ExitError) Error() string

Jump to

Keyboard shortcuts

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