cmd

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigCommandBuilder added in v0.12.0

func AddConfigCommandBuilder(fns ...func() *cobra.Command)

func Config added in v0.7.0

func Config() *cobra.Command

func Main

func Main()

func Root

func Root() *cobra.Command

Types

type ExitCodeErr

type ExitCodeErr interface {
	// ExitCode returns the exit code to use when the program exits due to this
	// error.
	ExitCode() int
}

ExitCodeErr is an interface that can be implemented by errors to provide a custom exit code when the program exits due to them.

type FlagCompletionRegistrar added in v0.10.0

type FlagCompletionRegistrar func(string, cobra.CompletionFunc) error

Jump to

Keyboard shortcuts

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