Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2014 License: MPL-2.0 Imports: 19 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 {
	Meta
}

func (BuildCommand) Help

func (BuildCommand) Help() string

func (BuildCommand) Run

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

func (BuildCommand) Synopsis

func (BuildCommand) Synopsis() string

type FixCommand

type FixCommand struct {
	Meta
}

func (*FixCommand) Help

func (*FixCommand) Help() string

func (*FixCommand) Run

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

func (*FixCommand) Synopsis

func (c *FixCommand) Synopsis() string

type InspectCommand

type InspectCommand struct {
	Meta
}

func (*InspectCommand) Help

func (*InspectCommand) Help() string

func (*InspectCommand) Run

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

func (*InspectCommand) Synopsis

func (c *InspectCommand) Synopsis() string

type Meta

type Meta struct {
	EnvConfig *packer.EnvironmentConfig
	Ui        cli.Ui
}

func (*Meta) Environment

func (m *Meta) Environment() (packer.Environment, error)

type PushCommand

type PushCommand struct {
	Meta
	// contains filtered or unexported fields
}

func (*PushCommand) Help

func (*PushCommand) Help() string

func (*PushCommand) Run

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

func (*PushCommand) Synopsis

func (*PushCommand) Synopsis() string

type ValidateCommand

type ValidateCommand struct {
	Meta
}

func (*ValidateCommand) Help

func (*ValidateCommand) Help() string

func (*ValidateCommand) Run

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

func (*ValidateCommand) Synopsis

func (*ValidateCommand) Synopsis() string

type VersionCheckFunc

type VersionCheckFunc func() (VersionCheckInfo, error)

VersionCheckFunc is the callback called by the Version command to check if there is a new version of Packer.

type VersionCheckInfo

type VersionCheckInfo struct {
	Outdated bool
	Latest   string
	Alerts   []string
}

VersionCheckInfo is the return value for the VersionCheckFunc callback and tells the Version command information about the latest version of Packer.

type VersionCommand

type VersionCommand struct {
	Meta

	Revision          string
	Version           string
	VersionPrerelease string
	CheckFunc         VersionCheckFunc
}

VersionCommand is a Command implementation prints the version.

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