command

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2015 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitCodeOK    int = 0
	ExitCodeError int = 1 + iota
)

Exit codes are int values that represent an exit code for a particular error.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeCommand

type DecodeCommand struct {
	Meta

	Name        string
	Reader      io.Reader
	Writer      io.Writer
	ErrorWriter io.Writer
}

func (*DecodeCommand) Help

func (c *DecodeCommand) Help() string

func (*DecodeCommand) Run

func (c *DecodeCommand) Run(args []string) int

func (*DecodeCommand) Synopsis

func (c *DecodeCommand) Synopsis() string

type EncodeCommand

type EncodeCommand struct {
	Meta

	Name        string
	Reader      io.Reader
	Writer      io.Writer
	ErrorWriter io.Writer
}

func (*EncodeCommand) Help

func (c *EncodeCommand) Help() string

func (*EncodeCommand) Run

func (c *EncodeCommand) Run(args []string) int

func (*EncodeCommand) Synopsis

func (c *EncodeCommand) Synopsis() string

type Meta

type Meta struct {
	Ui cli.Ui
}

Meta contain the meta-option that nearly all subcommand inherited.

type VersionCommand

type VersionCommand struct {
	Meta

	Name     string
	Version  string
	Revision string
}

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(args []string) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Jump to

Keyboard shortcuts

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