ctl

package
v1.0.4-hotfix Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasCommand added in v1.0.3

func HasCommand(name string) bool

HasCommand represent whether rootCmd has this command

func Init

func Init(cfg *common.Config) error

Init initializes dm-control

func NewRootCmd added in v1.0.3

func NewRootCmd() *cobra.Command

NewRootCmd generates a new rootCmd

func PrintHelp added in v1.0.3

func PrintHelp(args []string)

PrintHelp print help message for special subCommand

func PrintUsage added in v1.0.3

func PrintUsage()

PrintUsage prints usage

func Start

func Start(args []string)

Start starts running a command

Types

type CommandMasterFlags

type CommandMasterFlags struct {
	// contains filtered or unexported fields
}

CommandMasterFlags are flags that used in all commands for dm-master

func (CommandMasterFlags) Reset added in v1.0.3

func (c CommandMasterFlags) Reset()

Reset clears cache of CommandMasterFlags

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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