command

package
v0.0.0-...-6755289 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2014 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireCommand

type AcquireCommand struct {
	Ui   cli.Ui
	Name string
}

func (*AcquireCommand) Help

func (c *AcquireCommand) Help() string

func (*AcquireCommand) Run

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

func (*AcquireCommand) Synopsis

func (c *AcquireCommand) Synopsis() string

type ExecCommand

type ExecCommand struct {
	Ui   cli.Ui
	Name string
}

ExecCommand handles cthe "exec" action

func (*ExecCommand) Help

func (c *ExecCommand) Help() string

func (*ExecCommand) Run

func (c *ExecCommand) Run(args []string) (ret int)

func (*ExecCommand) Synopsis

func (c *ExecCommand) Synopsis() string

type InitCommand

type InitCommand struct {
	Ui   cli.Ui
	Name string
}

func (*InitCommand) Help

func (c *InitCommand) Help() string

func (*InitCommand) Run

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

func (*InitCommand) Synopsis

func (c *InitCommand) Synopsis() string

type Parser

type Parser struct {
	Consul  string
	Path    string
	Holder  string
	Verbose bool
	// contains filtered or unexported fields
}

type ReleaseCommand

type ReleaseCommand struct {
	Ui   cli.Ui
	Name string
}

func (*ReleaseCommand) Help

func (c *ReleaseCommand) Help() string

func (*ReleaseCommand) Run

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

func (*ReleaseCommand) Synopsis

func (c *ReleaseCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Revision          string
	Version           string
	VersionPrerelease string
	Ui                cli.Ui
}

VersionCommand is a Command implementation prints the version.

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

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

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

type WriterFunc

type WriterFunc func(p []byte) (n int, err error)

/ WriterFunc is used to coerce Ui.Output() into the Writer interface.

func (WriterFunc) Write

func (wf WriterFunc) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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