commands

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommand

func GetCommand(kc store.Store) *cobra.Command

func ListCommand

func ListCommand(kc store.Store) *cobra.Command

func RmCommand

func RmCommand(kc store.Store) *cobra.Command

func RunCommand added in v0.0.29

func RunCommand() *cobra.Command

func SetCommand

func SetCommand(kc store.Store) *cobra.Command

func VersionCommand

func VersionCommand(info VersionInfo) *cobra.Command

Types

type ExitCodeError added in v0.0.29

type ExitCodeError struct {
	Code int
}

ExitCodeError is returned from RunCommand when the executed child process terminated with a non-zero status. It carries the exit code the wrapper should exit with. Returning this instead of calling os.Exit directly lets the surrounding OTel span wrapper finish recording metrics and span data before the process exits.

func (*ExitCodeError) Error added in v0.0.29

func (e *ExitCodeError) Error() string

type VersionInfo

type VersionInfo struct {
	Version string
	Commit  string
}

Jump to

Keyboard shortcuts

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