cli

package module
v0.0.0-...-1e5b1f9 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2013 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Author string

Author's name

View Source
var AuthorEmail string

Author's e-mail

View Source
var Copyright string

Copyright statement.

View Source
var Homepage string

Project's URL.

View Source
var License string

License notice.

View Source
var Name string

Project name.

View Source
var Version string

Version string.

Functions

func Banner()

Displays a banner with available information (if any).

func Dispatch

func Dispatch() error

Dispatches the subcommand.

func Execute

func Execute(name string) error

Executes a subcommand.

func Help

func Help(name string) error

Shows help for a subcommand.

func Register

func Register(name string, entry Entry)

Registers a subcommand.

func Usage

func Usage(name string) error

Shows usage for a subcommand.

Types

type Command

type Command interface {
	Execute() error
}

Subcommand.

type Entry

type Entry struct {
	Name        string
	Usage       string
	Description string
	Arguments   []string
	Command     Command
}

Command entry.

Jump to

Keyboard shortcuts

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