Documentation
¶
Overview ¶
Package flags provides a way to add flags to the cli.
Index ¶
- func AddProfileFlag(c *cobra.Command)
- func AddRegionFlag(c *cobra.Command)
- func CredentialWarning(c *cobra.Command)
- func GetProfile(c *cobra.Command) string
- func GetRegion(c *cobra.Command) (string, error)
- func GetRegionWithError(c *cobra.Command) (string, error)
- func MarkAlphaDeprecated(c *cobra.Command)
- func ResolveAWSError(err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProfileFlag ¶ added in v2.9.0
AddProfileFlag will add a profile flag to the cli.
func AddRegionFlag ¶
AddRegionFlag will add a region flag to the cli.
func CredentialWarning ¶
CredentialWarning will output a credential warning.
func GetProfile ¶ added in v2.9.0
GetProfile will return the AWS profile to use.
func GetRegionWithError ¶
GetRegionWithError will return the region of the resource along with an error message if it could not be resolved.
func MarkAlphaDeprecated ¶
MarkAlphaDeprecated will mark a command as deprecated.
func ResolveAWSError ¶
ResolveAWSError will attempt to resolve an AWS error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.