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

COMP-1097: No realm and client id config in cortex init #61

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

rbrazinskas
Copy link
Contributor

No description provided.

Also support an onption to overwrite the value with a command line switch --client-id
Also support an option to overwrite the value with a command line switch --realm

Use "is_eager" flag to sort options so they get processed in the right order. Without the flag options passed via command line would get processed first. This would not work with realm option, because realm validation callback would be called prior to have validated auth server URL

Use decorator "help_option" with combination of "is_eager" to make sure option "--help" is processed first. Without this command "cortex init --help" would first run the init and only then show help message. And this is not the behavior we need
@rbrazinskas rbrazinskas marked this pull request as ready for review October 27, 2023 14:22
@rbrazinskas rbrazinskas merged commit b8046cc into main Oct 31, 2023
13 checks passed
@rbrazinskas rbrazinskas deleted the comp-1097-no-realm-and-client-id-config branch October 31, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants