commands

package
v0.0.0-...-d8f7d12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintCommands

func PrintCommands(writer io.Writer, commands []Command)

func RunCommands

func RunCommands(commands []Command, printUsage func(),
	logger log.DebugLogger) int

Types

type Command

type Command struct {
	Command string
	Args    string
	MinArgs int
	MaxArgs int
	CmdFunc CommandFunc
}

type CommandFunc

type CommandFunc func([]string, log.DebugLogger) error

Jump to

Keyboard shortcuts

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