cmd

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CredentialProcessCmd = &cobra.Command{
	Use:   "credential_process [role_name]",
	Short: credentialProcessShortHelp,
	Long:  credentialProcessLongHelp,
	Args:  cobra.MaximumNArgs(1),
	RunE:  runCredentialProcess,
}
View Source
var (
	SetupExtras embed.FS
)

Functions

func AddCustomCommands added in v0.3.15

func AddCustomCommands(commands []*cobra.Command)

func DecodeWeepInfo added in v0.2.11

func DecodeWeepInfo(args []string, w io.Writer) error

func Execute

func Execute() error

func InteractiveAccountsPrompt added in v0.3.15

func InteractiveAccountsPrompt(query string, client *creds.Client, numberOnly bool) (string, error)

InteractiveAccountsPrompt will present the user with a fuzzy-searchable list of accounts if - We are currently attached to an interactive tty - The user has not disabled them through the WEEP_DISABLE_INTERACTIVE_PROMPTS option

func InteractiveGenericSelectorPrompt added in v0.3.15

func InteractiveGenericSelectorPrompt(label string, display []string, query []string) (int, error)

InteractiveGenericSelectorPrompt will present the user with fuzzy-searchable list of generic selections if - We are currently attached to an interactive tty - The user has not disabled them through the WEEP_DISABLE_INTERACTIVE_PROMPTS option

func InteractiveRoleInAccountPrompt added in v0.3.15

func InteractiveRoleInAccountPrompt(query string, client *creds.Client, account string) (string, error)

InteractiveRoleInAccountPrompt will present the user with a fuzzy-searchable list of roles in an account if - We are currently attached to an interactive tty - The user has not disabled them through the WEEP_DISABLE_INTERACTIVE_PROMPTS option

func InteractiveRolePrompt added in v0.3.3

func InteractiveRolePrompt(args []string, region string, client *creds.Client) (string, error)

InteractiveRolePrompt will present the user with a fuzzy-searchable list of roles if - We are currently attached to an interactive tty - The user has not disabled them through the WEEP_DISABLE_INTERACTIVE_PROMPTS option

func PrintWeepInfo added in v0.2.11

func PrintWeepInfo(w io.Writer) error

func Run added in v0.1.39

func Run(initFunctions ...func())

func Setup added in v0.3.0

func Setup(cmd *cobra.Command, commit bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳