Hide completion command from help.#263
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@evankanderson: 0 warnings.
Details
In response to this:
Proposed Changes
- Hide the presence of the
kn completioncommand so that users mostly see the active command surface.`kn completion` is no longer suggested by `kn help`. The command still exists to enable command-line completion, but it should not be advertised in normal usage.
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.
|
/assign @rhuss |
|
oh the mental conflict! :-) If we keep it, I'm leaning more towards @rhuss's suggestion of having the help show groupings and putting this under |
|
Sample output: $ .\kn help
Manage your Knative building blocks:
* Serving: Manage your services and release new software to them.
* Eventing: Manage event subscriptions and channels. Connect up event sources.
Usage:
kn [command]
Available Commands:
help Help about any command
revision Revision command group
route Route command group
service Service command group
version Prints the client version
Flags:
--config string config file (default is $HOME/.kn/config.yaml)
-h, --help help for kn
--kubeconfig string kubectl config file (default is $HOME/.kube/config)
Use "kn [command] --help" for more information about a command.
$ kn help completion
Output shell completion code (default Bash)
Usage:
kn completion [flags]
Flags:
-h, --help help for completion
--zsh Generates completion code for Zsh shell.
Global Flags:
--config string config file (default is $HOME/.kn/config.yaml)
--kubeconfig string kubectl config file (default is $HOME/.kube/config)The use of https://github.com/knative/client#docs
My $0.02 is that hiding |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: evankanderson, maximilien The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hmm, not sure how this PR could pass the tests, as the documentation has not be regenerated, nor the autoformatting has been applied (e.g. has not been build with I'm going to extend our tests that all generated files have been generated. |
|
Added check & fix to #265 |
to `openshift/origin-release:golang-1.13`
Proposed Changes
kn completioncommand so that users mostly see the active command surface.