Skip to content
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

Add --try-no-prompt flag #1428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

xenia-lang
Copy link

@xenia-lang xenia-lang commented Mar 28, 2025

--try-no-prompt uses credentials from non-interactive sources, if possilbe.Otherwise it prompts the user to enter these credentials.

This optimizes the workflow by eliminating the need to press enter when valid credentials are present, while allowing to have them added to the keyring without the need to rerun the command (as would be necessary with --no-prompt). --no-prompt is still available for non-interactive usecases (see discussion in #101). This also creates an obvious place in the interface to add the functionality discussed in #101.

Naming of the new flag is open for discussion. Its placement (loginFlags vs commonFlags) is as well.

Unfortunately, I do not have an overview over all the use cases for saml2aws. If these changes hinder any use case, guidance is much appreciated. Same goes for general use of the Go language.

--try-no-prompt uses credentials from non-interactive sources, if
possilbe. Otherwise it prompts the user to enter these
credentials.
@xenia-lang xenia-lang marked this pull request as ready for review March 28, 2025 17:36
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.

1 participant