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

Added autocompletion for broker #1559

Merged
merged 3 commits into from
Jan 10, 2022

Conversation

vyasgun
Copy link
Contributor

@vyasgun vyasgun commented Jan 5, 2022

Description

Added completion function for broker describe and delete

Changes

  • Added completion function for broker resource
./kn broker describe<tab>
abc-broker   xyz-broker   xyza-broker

Reference

#1373

Copy link
Contributor

@knative-prow-robot knative-prow-robot left a 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 completion function for broker describe and delete

Changes

  • Added completion function for broker resource
./kn broker describe<tab>
abc-broker   xyz-broker   xyza-broker

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.

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 5, 2022
@codecov
Copy link

codecov bot commented Jan 5, 2022

Codecov Report

Merging #1559 (7397a0a) into main (6314298) will increase coverage by 0.01%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1559      +/-   ##
==========================================
+ Coverage   79.57%   79.59%   +0.01%     
==========================================
  Files         163      163              
  Lines        8544     8562      +18     
==========================================
+ Hits         6799     6815      +16     
- Misses       1068     1069       +1     
- Partials      677      678       +1     
Impacted Files Coverage Δ
pkg/kn/commands/completion_helper.go 91.04% <87.50%> (-1.12%) ⬇️
pkg/kn/commands/broker/delete.go 71.42% <100.00%> (+1.05%) ⬆️
pkg/kn/commands/broker/describe.go 76.19% <100.00%> (+0.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6314298...7397a0a. Read the comment docs.

@rhuss rhuss mentioned this pull request Jan 5, 2022
6 tasks
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 5, 2022
@vyasgun vyasgun force-pushed the pr/completion-broker branch from f015ea1 to b001042 Compare January 5, 2022 14:48
fakeEventing = &fake.FakeEventingV1{Fake: &clienttesting.Fake{}}
)

var knParams = initialiseKnParams()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be part of var() block above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it would be neater to create diff var blocks for different resources (the one above it is for service resource)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, lets keep it then! :)

Copy link
Contributor

@dsimansk dsimansk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vyasgun! Just a few cosmetic nits, otherwise LGTM.

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/kn/commands/completion_helper.go 96.0% 95.5% -0.5

Copy link
Contributor

@dsimansk dsimansk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2022
@knative-prow-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2022
@knative-prow-robot knative-prow-robot merged commit c6997da into knative:main Jan 10, 2022
@dsimansk dsimansk linked an issue Jan 11, 2022 that may be closed by this pull request
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context sensitive Bash completion
4 participants