Documentation ¶
Index ¶
Constants ¶
View Source
const ( GlobalFlagsConfigFileFormatJSON = "json" GlobalFlagsConfigFileFormatYAML = "yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalFlags ¶
type GlobalFlags struct { AppDirectory *string `json:"app-dir,omitempty"` ConfigFile *string `json:"config,omitempty"` ConfigFileFormat *string `json:"config-format,omitempty"` DisableColoring *bool `json:"disable-color,omitempty"` Verbose *bool `json:"verbose,omitempty"` AWSAccessKey *string `json:"aws-access-key,omitempty"` AWSSecretKey *string `json:"aws-secret-key,omitempty"` AWSRegion *string `json:"aws-region,omitempty"` AWSVPC *string `json:"aws-vpc,omitempty"` }
func NewGlobalFlags ¶
func NewGlobalFlags(ka *kingpin.Application) *GlobalFlags
func (*GlobalFlags) GetAWSClient ¶
func (gf *GlobalFlags) GetAWSClient() *aws.Client
func (*GlobalFlags) GetAWSRegionAndVPCID ¶
func (gf *GlobalFlags) GetAWSRegionAndVPCID() (string, string, error)
func (*GlobalFlags) GetApplicationDirectory ¶
func (gf *GlobalFlags) GetApplicationDirectory() (string, error)
GetApplicationDirectory returns an absolute path of the application directory.
func (*GlobalFlags) GetConfigFile ¶
func (gf *GlobalFlags) GetConfigFile() (string, error)
GetConfigFile returns an absolute path of the configuration file.
Click to show internal directories.
Click to hide internal directories.