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

feat(serviceaccount): add interactive mode for the reset credentials command #248

Merged
merged 5 commits into from
Jan 21, 2021

Conversation

craicoverflow
Copy link
Contributor

@craicoverflow craicoverflow commented Jan 20, 2021

Resolves #248

This PR adds an interactive prompt when resetting credentials for a service account.

Flow

❯ rhoas serviceaccount reset-credentials
? Service account ID: 813c4000-3c1d-4393-bb78-ea0c2af8594a
? Credentials output format: properties
? Credentials file location: /home/ephelan/code/github.com/bf2/cli/credentials.properties
? The file '/home/ephelan/code/github.com/bf2/cli/credentials.properties' already exists. Do you want to overwrite it? Yes
? Are you sure you want to reset the credentials for the service account with ID '813c4000-3c1d-4393-bb78-ea0c2af8594a'? Yes
Service account credentials reset
Credentials saved to /home/ephelan/code/github.com/bf2/cli/credentials.properties

@craicoverflow craicoverflow requested a review from wtrocki January 20, 2021 15:46
@craicoverflow craicoverflow merged commit 16699e5 into main Jan 21, 2021
@craicoverflow craicoverflow deleted the interactive-credentials-reset branch January 21, 2021 12:48
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