cli

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ui cli.Ui, name, githubToken string) (*cli.CLI, error)

New creates a new command-line app

Types

type Build

type Build struct {
	cli.Ui
	*spec.Spec
	formula.Formula
}

Build is the build CLI command

func NewBuild

func NewBuild(ui cli.Ui, spec *spec.Spec, formula formula.Formula) (*Build, error)

NewBuild create a new build command

func (*Build) Help

func (c *Build) Help() string

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

func (*Build) Run

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

Run runs the actual command with the given CLI instance and command-line arguments

func (*Build) Synopsis

func (c *Build) Synopsis() string

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

type Release

type Release struct {
	cli.Ui
	*spec.Spec
	formula.Formula
}

Release is the release CLI command

func NewRelease

func NewRelease(ui cli.Ui, spec *spec.Spec, formula formula.Formula) (*Release, error)

NewRelease create a new release command

func (*Release) Help

func (c *Release) Help() string

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

func (*Release) Run

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

Run runs the actual command with the given CLI instance and command-line arguments

func (*Release) Synopsis

func (c *Release) Synopsis() string

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

type Test

type Test struct {
	cli.Ui
	*spec.Spec
	formula.Formula
}

Test is the test CLI command

func NewTest

func NewTest(ui cli.Ui, spec *spec.Spec, formula formula.Formula) (*Test, error)

NewTest create a new test command

func (*Test) Help

func (c *Test) Help() string

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

func (*Test) Run

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

Run runs the actual command with the given CLI instance and command-line arguments

func (*Test) Synopsis

func (c *Test) Synopsis() string

Synopsis returns the 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