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

fix(config): improve and secure config UX #27

Merged
merged 3 commits into from
Aug 31, 2023
Merged

Conversation

pilartomas
Copy link
Collaborator

@pilartomas pilartomas commented Aug 30, 2023

Miscellaneous fixes and improvements of the configuration command.

  • User is no longer prompted for the profile during configuration, this makes the profile feature less visible which is desirable in regular use.
  • Full configuration is no longer shown at the end of the config setup. Rather, values are shown inside the prompts.
  • Flags have been converted to commands
  • Added profiles command to list commands

@pilartomas pilartomas marked this pull request as ready for review August 30, 2023 13:53
@Tomas2D Tomas2D self-requested a review August 30, 2023 14:00
@pilartomas pilartomas marked this pull request as draft August 30, 2023 14:02
@pilartomas pilartomas marked this pull request as ready for review August 30, 2023 14:06
@pilartomas pilartomas force-pushed the fix-config-command branch 2 times, most recently from 7fbd3dd to bd903b9 Compare August 30, 2023 14:09
@pilartomas pilartomas marked this pull request as draft August 31, 2023 07:00
Signed-off-by: Tomas Pilar <tomas.pilar@ibm.com>
@pilartomas pilartomas marked this pull request as ready for review August 31, 2023 07:55
src/utils/config.js Outdated Show resolved Hide resolved
src/utils/config.js Outdated Show resolved Hide resolved
...credentials,
...(profile && credentials.profiles && credentials.profiles[profile]),
};
Copy link
Member

Choose a reason for hiding this comment

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

This type of merging will not handle undefined values. Is it okay?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you reiterate? Spreading variable with undefined value should work just fine.

Signed-off-by: Tomas Pilar <tomas.pilar@ibm.com>
Signed-off-by: Tomas Pilar <tomas.pilar@ibm.com>
@pilartomas pilartomas merged commit 4cd86b1 into main Aug 31, 2023
7 checks passed
@pilartomas pilartomas deleted the fix-config-command branch August 31, 2023 12: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.

2 participants