Skip to content

Add explicit removal notice + instructions for --prompt=pass #1190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tavisrudd
Copy link
Contributor

@tavisrudd tavisrudd commented Mar 17, 2023

This is related to the discussion in #1185.

It's a bit verbose / copy-pasta as I couldn't figure out a good way to pre-validate EnumVars before their own option validation kicks in.

Also, I'm a golang newb so I apologize for any stupid mistakes I need to clean up.

It's a bit verbose / copy-pasta as I couldn't figure out a good way to
pre-validate EnumVars before their own option validation kicks in.
return nil
}
}
return fmt.Errorf("--prompt value must be one of %s, got '%s'", strings.Join(promptsAvailable, ","), a.promptDriver)
Copy link
Contributor Author

@tavisrudd tavisrudd Mar 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original message says "enum value must" but I took the liberty of making it more explicit which flag this is for.

@tavisrudd
Copy link
Contributor Author

Prior behaviour

> export AWS_VAULT_PROMPT="pass"
> aws-vault list
aws-vault: error: enum value must be one of osascript,terminal,ykman, got 'pass', try --help

@mtibben
Copy link
Member

mtibben commented Mar 17, 2023

Thanks for the contribution @tavisrudd !

@mtibben mtibben merged commit af6df83 into 99designs:master Mar 17, 2023
@tavisrudd tavisrudd deleted the add-removal-notice-for-pass-prompt-driver branch March 22, 2023 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants