-
Notifications
You must be signed in to change notification settings - Fork 1
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
PDI-2056: Add Defaults to Usage Output #18
Conversation
erikostien-pingidentity
commented
Oct 17, 2024
•
edited
Loading
edited
- Update all PFlag structs to remove DefValue and manually add default information to Usage field.
- Also remove config command logic.
- Change --color flag to --no-color and update all logic and testing for the flag.
- Update all boolean flags to be PFlag configured boolean flags.
- Update all PFlag structs to remove DefValue and manually add default information to Usage field. - Also remove config command logic.
…rsing flag variable type in PFlag
Potential problem:
This probably needs something to remove |
Is there a possibility of removing the |
This is simply a validation step on pingcli startup. It informs the user that their config file is using a config key that is not recognized/does not exist. While this is a breaking change, since this is before beta, I think this is fine to add in without additional migration logic. |
This is possible, but it will remove a subtlety here. For example in the following niche case, if a user specifies '--profile A' to output tool responses as json, but the user wants to modify --profile-name B, this would no longer be possible without additionally using the --output-format flag. Since this is niche, I don't think there is an issue removing this capability. |
I didn't consider that case, good spot. I agree it is niche though, let's flatten to |
Edit: alpha users were using PingCTL - this wouldn't be in issue |