cmd

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AppVersion is the global CLI application version
	AppVersion string
)

Functions

func Execute

func Execute()

Execute is the app-wide CLI entrypoint

Types

type RootCmd

type RootCmd struct {
	Cmd *cobra.Command
}

RootCmd is a global cmd package abstraction struct

func NewRootCmd

func NewRootCmd() *RootCmd

NewRootCmd returns the application and global facing root cobra command

func (*RootCmd) LoadSubCommands

func (r *RootCmd) LoadSubCommands()

LoadSubCommands loads the sub-commands of RootCmd.Cmd

Jump to

Keyboard shortcuts

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