module

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveGlobalFlags []GlobalFlag

ActiveGlobalFlags contains all global flags. If a global flag is not in this slice, it won't be activated.

View Source
var ActiveModules []Module

ActiveModules contains all available modules. If a module is not in this slice, it won't be activated. Except for the module `modules`, which is registered in the main package.

View Source
var CliApp *cli.App

Functions

func GetByName added in v1.13.0

func GetByName(name string) (*cli.Command, error)

func Run added in v1.13.0

func Run(cmd *cli.Command, flags map[string]string) error

Types

type GlobalFlag

type GlobalFlag interface {
	GetFlags() []cli.Flag
}

GlobalFlag is the interface of each global flag in dops. Each flag module must return at least one flag.

type Module

type Module interface {
	GetCommands() []*cli.Command
}

Module is the interface of each module available in dops. Each module must return at least one command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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