command

package
v0.0.0-...-bceea35 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildCommand

type BuildCommand struct {
	UI cli.Ui
}

BuildCommand is a Command implementation that generates Packer templates from named named builds and passed build arguments.

func (*BuildCommand) Help

func (c *BuildCommand) Help() string

Help prints the help text for the build sub-command.

func (*BuildCommand) Run

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

Run runs the build sub-command, handling all passed args and flags.

func (*BuildCommand) Synopsis

func (c *BuildCommand) Synopsis() string

Synopsis provides a precis of the build sub-command.

type RunCommand

type RunCommand struct {
	UI cli.Ui
}

RunCommand is a Command implementation that generates Packer templates from passed build list names.

func (*RunCommand) Help

func (c *RunCommand) Help() string

Help prints the help text for the run sub-command.

func (*RunCommand) Run

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

Run runs the run sub-command; the args are a variadic list of build list names.

func (*RunCommand) Synopsis

func (c *RunCommand) Synopsis() string

Synopsis provides a precis of the run sub-command.

type VersionCommand

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

VersionCommand is a Command implementation that prints the version.

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

Help prints the Help text for the version sub-command

func (*VersionCommand) Run

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

Run runs the version sub-command.

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Synopsis provides a precis of the version sub-command.

Jump to

Keyboard shortcuts

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