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

Improve interactive password/token prompts #213

Closed
rsenden opened this issue Jan 3, 2023 · 0 comments
Closed

Improve interactive password/token prompts #213

rsenden opened this issue Jan 3, 2023 · 0 comments

Comments

@rsenden
Copy link
Contributor

rsenden commented Jan 3, 2023

The option description for most session login options like (SSC) URL, user, password and token includes a list of environment variables that can be used to specify a default value for those options. This looks fine in help output and man-pages, but doesn't look very good in interactive prompts. For example:

> fcli ssc token create CIToken --url http://localhost:2220/ssc -ussc -p
Enter value for --password (SSC password. Environment variables:
 FCLI_DEFAULT_SSC_PASSWORD: Shared with SC SAST/DAST
 FCLI_DEFAULT_SSC_SESSION_PASSWORD: Only SSC session commands):

According to picocli documentation, the first line of the option description (as specified through numbered resource bundle keys) is used for interactive prompts. Resource bundles need to be updated to improve the output for interactive prompts, for example as follows:

password.0 = SSC password
password.1 = Environment variables:%n ${fcli.env.default.prefix}_SSC_PASSWORD: Shared with SC SAST/DAST%n ${fcli.env.default.prefix}_SSC_SESSION_PASSWORD: Only SSC session commands
@rsenden rsenden changed the title Improve interactive password prompts Improve interactive password/token prompts Jan 3, 2023
@rsenden rsenden closed this as completed in ad15067 Jan 3, 2023
@github-actions github-actions bot mentioned this issue Aug 13, 2024
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

No branches or pull requests

1 participant