command

package
v0.0.0-...-2839dbd Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(err error)

CheckIfError should be used to naively panics if an error is not nil.

func Error

func Error(format string, args ...interface{})

Error printer

func Info

func Info(format string, args ...interface{})

Info should be used to describe the example commands that are about to run.

func Warning

func Warning(format string, args ...interface{})

Warning should be used to display a warning

Types

type DeployCommand

type DeployCommand struct {
	Meta
}

func (*DeployCommand) Help

func (c *DeployCommand) Help() string

func (*DeployCommand) Run

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

func (*DeployCommand) Synopsis

func (c *DeployCommand) Synopsis() string

type InitCommand

type InitCommand struct {
	Meta
}

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 ListCommand

type ListCommand struct {
	Meta
}

func (*ListCommand) Help

func (c *ListCommand) Help() string

func (*ListCommand) Run

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

func (*ListCommand) Synopsis

func (c *ListCommand) Synopsis() string

type Meta

type Meta struct {
	Ui cli.Ui
	// contains filtered or unexported fields
}

Meta contain the meta-option that nearly all subcommand inherited.

type RemoveCommand

type RemoveCommand struct {
	Meta
}

func (*RemoveCommand) Help

func (c *RemoveCommand) Help() string

func (*RemoveCommand) Run

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

func (*RemoveCommand) Synopsis

func (c *RemoveCommand) Synopsis() string

type ResetCommand

type ResetCommand struct {
	Meta
}

func (*ResetCommand) Help

func (c *ResetCommand) Help() string

func (*ResetCommand) Run

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

func (*ResetCommand) Synopsis

func (c *ResetCommand) Synopsis() string

type UpdateCommand

type UpdateCommand struct {
	Meta
}

func (*UpdateCommand) Help

func (c *UpdateCommand) Help() string

func (*UpdateCommand) Run

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

func (*UpdateCommand) Synopsis

func (c *UpdateCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Meta
	Name     string
	Version  string
	Revision string
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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