You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
promptDriver=kingpin.Flag("prompt", fmt.Sprintf("Prompt driver to use %v", prompts)).Default("terminal").OverrideDefaultFromEnvar("AWS_VAULT_PROMPT").Enum(prompts...)
37
37
add=kingpin.Command("add", "Adds credentials, prompts if none provided")
38
38
addProfile=add.Arg("profile", "Name of the profile").Required().String()
39
39
addFromEnv=add.Flag("env", "Read the credentials from the environment").Bool()
@@ -42,7 +42,6 @@ func main() {
42
42
execNoSession=exec.Flag("no-session", "Use root credentials, no session created").Short('n').Bool()
43
43
execSessDuration=exec.Flag("session-ttl", "Expiration time for aws session").Default("4h").OverrideDefaultFromEnvar("AWS_SESSION_TTL").Short('t').Duration()
44
44
execMfaToken=exec.Flag("mfa-token", "The mfa token to use").Short('m').String()
45
-
execMfaPrompt=exec.Flag("mfa-prompt", fmt.Sprintf("Prompt to use for mfa, from %v", prompts)).Default("terminal").OverrideDefaultFromEnvar("AWS_VAULT_PROMPT").Enum(prompts...)
46
45
execServer=exec.Flag("server", "Run the server in the background for credentials").Short('s').Bool()
47
46
execProfile=exec.Arg("profile", "Name of the profile").Required().String()
48
47
execCmd=exec.Arg("cmd", "Command to execute").Default(os.Getenv("SHELL")).String()
@@ -53,7 +52,6 @@ func main() {
53
52
login=kingpin.Command("login", "Generate a login link for the AWS Console")
54
53
loginProfile=login.Arg("profile", "Name of the profile").Required().String()
55
54
loginMfaToken=login.Flag("mfa-token", "The mfa token to use").Short('t').String()
56
-
loginMfaPrompt=login.Flag("mfa-prompt", fmt.Sprintf("Prompt to use for mfa, from %v", prompts)).Default("terminal").OverrideDefaultFromEnvar("AWS_VAULT_PROMPT").Enum(prompts...)
57
55
server=kingpin.Command("server", "Run an ec2 instance role server locally")
0 commit comments