commands

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Defines all the CLI command definitions and execution against internal frameworks

Index

Constants

View Source
const (
	FlagVerbose     = "verbose"
	EnvDepconMode   = "DEPCON_MODE"
	ModeMarathon    = "marathon"
	EnvMarathonHost = "MARATHON_HOST"
	EnvMarathonUser = "MARATHON_USER"
	EnvMarathonPass = "MARATHON_PASS"
	FlagEnv         = "env"
	ViperEnv        = "env_name"
	EnvHelp         = `` /* 128-byte string literal not displayed */
	DepConHelp      = `` /* 213-byte string literal not displayed */

)
View Source
const (
	FLAG_FORMAT string = "output"
	TypeJSON    string = "json"
	TypeYAML    string = "yaml"
	TypeColumn  string = "column"
)

Variables

View Source
var (
	Version   string = ""
	BuildDate string = ""
)
View Source
var ErrInvalidOutputFormat = errors.New("Invalid Output specified. Must be 'json','yaml' or 'column'")
View Source
var ErrInvalidRootOption = errors.New("Invalid chroot option specified. Must be 'true' or 'false'")
View Source
var ValidOutputs []string = []string{"json", "yaml", "column"}

Functions

func Execute

func Execute()

Main Entry point called by main - responsible for detecting if this is a first run without a config to force initial setup

func PrintError

func PrintError(err error)

func PrintFormat

func PrintFormat(formatter cli.Formatter)

Types

type ConfigEnvironments

type ConfigEnvironments struct {
	DefaultEnv string
	Envs       map[string]*cliconfig.ConfigEnvironment
}

func (ConfigEnvironments) ToColumns

func (e ConfigEnvironments) ToColumns(output io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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