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

Adds zsh completion #476

Merged

Conversation

navidshaikh
Copy link
Collaborator

Fixes #456

Proposed Changes

  • Adds back zsh completion after vendoring cobra library with a fix
  • Updates the command definition to accept argument either of ['bash', 'zsh']
  • Moves the completion command definition under pkg/kn/commands/completion
  • Updates docs
  • Updates CHANGELOG

/lint

 - Adds back zsh completion after vendoring cobra library with a fix
 - Updates the command definition to accept argument either of ['bash', 'zsh']
 - Moves the completion command definition under `pkg/kn/commands/completion`
 - Updates docs
 - Updates CHANGELOG.adoc
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 5, 2019
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.

@navidshaikh: 1 warning.

In response to this:

Fixes #456

Proposed Changes

  • Adds back zsh completion after vendoring cobra library with a fix
  • Updates the command definition to accept argument either of ['bash', 'zsh']
  • Moves the completion command definition under pkg/kn/commands/completion
  • Updates docs
  • Updates CHANGELOG

/lint

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.

pkg/kn/commands/completion/completion.go Show resolved Hide resolved
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: navidshaikh

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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 5, 2019
@navidshaikh
Copy link
Collaborator Author

/lint

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.

@navidshaikh: 0 warnings.

In response to this:

/lint

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-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/completion.go Do not exist 100.0%

@rhuss
Copy link
Contributor

rhuss commented Nov 5, 2019

Looks good to me.

I added #477 to not forget that we should reintroduce the completion command to the help message, too (or at least discuss this).

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2019
@navidshaikh navidshaikh added this to the v0.10.0 milestone Nov 5, 2019
@rhuss
Copy link
Contributor

rhuss commented Nov 5, 2019

/retest

@knative-prow-robot knative-prow-robot merged commit 44dafbd into knative:master Nov 5, 2019
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
* let 0 statement go file pass coverage threshold

1. Go file with no statement should not be marked as low coverage file.
2. Added logs when a file is marked as low coverage file. This will help debugging to see if a file is marked wrongly

* add more comments
@navidshaikh navidshaikh deleted the pr/revert-zsh-completion branch July 6, 2020 11:40
dsimansk added a commit to dsimansk/client that referenced this pull request Nov 5, 2024
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. cla: yes Indicates the PR's author has signed the CLA. 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.

Is BASH completion needed and useful?
5 participants