build

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: ISC Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Path  string
	Label string
}

Artifact is a build artifacts.

type Command

type Command struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Command is the cli.Command implementation for build command.

func NewCommand

func NewCommand(ui cli.Ui, spec spec.Spec) (*Command, error)

NewCommand creates a build command.

func (*Command) Artifacts

func (c *Command) Artifacts() []Artifact

Artifacts returns the build artifacts after the command is run.

func (*Command) Help

func (c *Command) Help() string

Help returns a long help text including usage, description, and list of flags for the command.

func (*Command) Run

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

Run runs the actual command with the given command-line arguments. This method is used as a proxy for creating dependencies and the actual command execution is delegated to the run method for testing purposes.

func (*Command) Synopsis

func (c *Command) Synopsis() string

Synopsis returns a short one-line synopsis of the command.

Jump to

Keyboard shortcuts

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