-
Notifications
You must be signed in to change notification settings - Fork 167
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: use config value if no address passed to login command #1975
Conversation
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
cmd := &cobra.Command{ | ||
Use: "login SERVER_ADDRESS (--admin | --kubeconfig | --sso)", | ||
Args: option.ExactArgs(1), | ||
Use: "login [SERVER_ADDRESS] (--admin | --kubeconfig | --sso)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it better to show config address like below?
Use: "login [SERVER_ADDRESS] (--admin | --kubeconfig | --sso)", | |
Use: "login [SERVER_ADDRESS | <default address here>] (--admin | --kubeconfig | --sso)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current is fine, as the default address is not actually being used as an argument but as a fallback.
Instead, it may be better to instruct people how to make use of the default address in the Example
section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an example for omitted server address: c327f72
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1975 +/- ##
==========================================
- Coverage 46.25% 46.21% -0.04%
==========================================
Files 235 235
Lines 16005 16017 +12
==========================================
Hits 7403 7403
- Misses 8242 8254 +12
Partials 360 360 ☔ View full report in Codecov by Sentry. |
#1975 (comment) Signed-off-by: Sunghoon Kang <hoon@akuity.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #1974 This commit uses the address in config if no address is passed to the login command. Signed-off-by: Sunghoon Kang <hoon@akuity.io>
#1975 (comment) Signed-off-by: Sunghoon Kang <hoon@akuity.io>
Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
Fixes #1974
This commit uses the address in config if no address is passed to the login command.