cli

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ExitSuccess    = 0
	ExitValidation = 1
	ExitBlocking   = 2
	ExitConflict   = 3
	ExitProvider   = 4
	ExitUsage      = 64
)

Variables

This section is empty.

Functions

func New

func New(version string) *cobra.Command

func NewWithBuildInfo

func NewWithBuildInfo(info BuildInfo) *cobra.Command

Types

type BuildInfo

type BuildInfo struct {
	Version   string
	Commit    string
	BuildTime string
}

BuildInfo carries version metadata injected at build time via ldflags.

type ExitError

type ExitError struct {
	Code      int
	ErrorCode string
	Message   string
	JSON      bool
}

ExitError preserves a stable CLI exit status through Cobra.

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