-
Notifications
You must be signed in to change notification settings - Fork 80
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: allow auto-completing context flag #861
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #861 +/- ##
==========================================
- Coverage 61.49% 61.48% -0.01%
==========================================
Files 238 238
Lines 8522 8538 +16
==========================================
+ Hits 5241 5250 +9
- Misses 2572 2576 +4
- Partials 709 712 +3 ☔ View full report in Codecov by Sentry. |
) | ||
|
||
OptionContext = newOpt( | ||
"context", | ||
"Currently active context", | ||
"", | ||
OptionFlagConfig|OptionFlagEnv|OptionFlagPFlag, | ||
func(_ hcapi2.Client, cfg Config, _ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) { | ||
ctxs := cfg.Contexts() |
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.
🤡 Does this consider the --config
flag?
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.
Yes, it does 😄
🤖 I have created a release *beep* *boop* --- ## [1.48.0](v1.47.0...v1.48.0) (2024-10-25) ### Features * allow auto-completing context flag ([#861](#861)) ([7495b14](7495b14)) * **primary-ip:** allow setting auto-delete on create ([#860](#860)) ([b6aecb3](b6aecb3)), closes [#855](#855) ### Bug Fixes * **image:** only use numerical IDs for label auto-completion ([#865](#865)) ([1d10d92](1d10d92)) * **primary-ip:** labels ignored in create command ([#885](#885)) ([7a17174](7a17174)), closes [#883](#883) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
See #853 for more information. Closes #853