commands

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandMap = map[string]*Command{
	"clear":   clearCmd,
	"open":    openCmd,
	"version": versionCmd,
}

CommandMap defines all of the available subcommands.

Functions

This section is empty.

Types

type Command

type Command struct {
	Usage     func(string)
	RunMethod func([]string) error
}

Command represents the definition of a single command.

func (*Command) Run

func (cmd *Command) Run(args []string) error

Run executes the command with the given args.

Jump to

Keyboard shortcuts

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