cmd

package
v0.0.0-...-d46a54d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvPrefix is prefix for environment variables for loaded conf variables
	EnvPrefix string = "XMP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RootCmd

type RootCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

RootCmd is parent command for all commands

func NewRootCmd

func NewRootCmd(logger *zerolog.Logger, version string, build string) *RootCmd

NewRootCmd creates new root command

func (*RootCmd) Execute

func (c *RootCmd) Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the RootCmd.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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