cli

package
v0.0.0-...-e8464d3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArgs = fmt.Errorf("wrong number of subcommand arguments")
View Source
var ErrUsage = fmt.Errorf("show usage")

Functions

func Exec

func Exec(commands CommandsMap)

Types

type Command

type Command interface {
	Usage() string
	Flags()
	Run(args []string) error
}

type CommandsMap

type CommandsMap map[string]Command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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