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 ¶
Types ¶
type ConfigEnvironments ¶
type ConfigEnvironments struct { DefaultEnv string Envs map[string]*cliconfig.ConfigEnvironment }
Click to show internal directories.
Click to hide internal directories.