command

package
v0.40.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindAction

func BindAction(clause *cli.CommandClause, fn func() error)

BindAction binds a function to a command clause, so that it is executed when the command is parsed.

Types

type Registerer

type Registerer interface {
	Command(cmd string, help string) *cli.CommandClause
}

Registerer allows others to register commands on it.

Jump to

Keyboard shortcuts

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