entry

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func 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.

func NewRootCmd

func NewRootCmd(opts ...CommandOption) *cobra.Command

NewRootCmd call once for global RootCmd initialization

Types

type CommandOption

type CommandOption func(options *CommandOptions)

type CommandOptions

type CommandOptions struct {
	Use            string
	Short          string
	Long           string
	ConfigFilePath string
}

Jump to

Keyboard shortcuts

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