cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: Unlicense Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDispatcher

func CreateDispatcher(ctx context.Context, info *Info) func() error

func Register

func Register(name string, info *Info)

Types

type ExecutorFunc

type ExecutorFunc func(ctx context.Context, args []string) error

type Info

type Info struct {
	Use   string
	Short string
	Long  string
	Run   ExecutorFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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