commands

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 42

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