-
Notifications
You must be signed in to change notification settings - Fork 263
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
Added completion for domain command #1562
Added completion for domain command #1562
Conversation
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.
@vyasgun: 0 warnings.
In response to this:
Description
Added auto completion function for domain command
Changes
- Added auto completion function for domain command
- Added unit tests for the above
Reference
Fixes #1373
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Codecov Report
@@ Coverage Diff @@
## main #1562 +/- ##
==========================================
+ Coverage 79.63% 79.65% +0.02%
==========================================
Files 163 163
Lines 8597 8616 +19
==========================================
+ Hits 6846 6863 +17
- Misses 1071 1072 +1
- Partials 680 681 +1
Continue to review full report at Codecov.
|
pkg/kn/commands/completion_helper.go
Outdated
resourceToFuncMap = map[string]func(config *completionConfig) []string{ | ||
"service": completeService, | ||
"domain": completeDomain, |
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.
Since that's going to be the last conflict. Maybe, I'd order the list alphabetically by the resource name for the better overview.
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.
Thanks, I reordered.
db0baea
to
f192bcb
Compare
The following is the coverage report on the affected files.
|
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.
Wondering if we really should have completion helper for delete
?
Also, is this worth adding some docs to README or perhaps a simple ascii recoding?
@maximilien |
IMO, it should be consistent across the commands, therefore once there's @maximilien I'd suggest to continue with merging this PR, as it's part of "add completion" issue and maybe continue the further discussion about |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, vyasgun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Added auto completion function for domain command
Changes
Reference