Documentation ¶
Index ¶
- Variables
- func AddCustomCommands(commands []*cobra.Command)
- func DecodeWeepInfo(args []string, w io.Writer) error
- func Execute() error
- func GetUserInput(label string) (string, error)
- func InteractiveAccountsPrompt(query string, client *creds.Client, numberOnly bool) (string, error)
- func InteractiveGenericSelectorPrompt(label string, display []string, query []string) (int, error)
- func InteractiveRoleInAccountPrompt(query string, client *creds.Client, account string) (string, error)
- func InteractiveRolePrompt(args []string, region string, client *creds.Client) (string, error)
- func PrintWeepInfo(w io.Writer) error
- func Run(initFunctions ...func())
- func Setup(cmd *cobra.Command, commit bool) error
Constants ¶
This section is empty.
Variables ¶
var CredentialProcessCmd = &cobra.Command{ Use: "credential_process [role_name]", Short: credentialProcessShortHelp, Long: credentialProcessLongHelp, Args: cobra.MaximumNArgs(1), RunE: runCredentialProcess, }
var (
SetupExtras embed.FS
)
Functions ¶
func AddCustomCommands ¶ added in v0.3.15
func GetUserInput ¶ added in v0.3.18
GetUserInput gets user input from stdin
func InteractiveAccountsPrompt ¶ added in v0.3.15
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
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
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
Types ¶
This section is empty.