cli

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitSuccess int = iota
	ExitErrParseOpts
	ExitErrStart

	ExitErrShutdown = 254
	ExitGeneral     = 255
)

Variables

This section is empty.

Functions

func PrintVersion

func PrintVersion()

func ValidateMainOpts

func ValidateMainOpts(opts *MainOpts) error

Types

type MainOpts

type MainOpts struct {
	api.MinKAPIConfig
	Version bool
}

MainOpts is a struct that encapsulates target fields for CLI options parsing.

func ParseProgramFlags

func ParseProgramFlags(args []string) (*MainOpts, error)

func SetupFlagsToOpts

func SetupFlagsToOpts() (*pflag.FlagSet, *MainOpts)

Jump to

Keyboard shortcuts

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