flags

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package flags provides a way to add flags to the cli.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProfileFlag added in v2.9.0

func AddProfileFlag(c *cobra.Command)

AddProfileFlag will add a profile flag to the cli.

func AddRegionFlag

func AddRegionFlag(c *cobra.Command)

AddRegionFlag will add a region flag to the cli.

func CredentialWarning

func CredentialWarning(c *cobra.Command)

CredentialWarning will output a credential warning.

func GetProfile added in v2.9.0

func GetProfile(c *cobra.Command) string

GetProfile will return the AWS profile to use.

func GetRegion

func GetRegion(c *cobra.Command) (string, error)

GetRegion will return the region of the resource.

func GetRegionWithError

func GetRegionWithError(c *cobra.Command) (string, error)

GetRegionWithError will return the region of the resource along with an error message if it could not be resolved.

func MarkAlphaDeprecated

func MarkAlphaDeprecated(c *cobra.Command)

MarkAlphaDeprecated will mark a command as deprecated.

func ResolveAWSError

func ResolveAWSError(err error) error

ResolveAWSError will attempt to resolve an AWS error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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