-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add completion to help message (#478)
Fixes #477
- Loading branch information
1 parent
d66887a
commit c4a9197
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## kn completion | ||
|
||
Output shell completion code | ||
|
||
### Synopsis | ||
|
||
|
||
This command prints shell completion code which needs to be evaluated | ||
to provide interactive completion | ||
|
||
Supported Shells: | ||
- bash | ||
- zsh | ||
|
||
``` | ||
kn completion [SHELL] [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Generate completion code for bash | ||
source <(kn completion bash) | ||
# Generate completion code for zsh | ||
source <(kn completion zsh) | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for completion | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--config string kn config file (default is $HOME/.kn/config.yaml) | ||
--kubeconfig string kubectl config file (default is $HOME/.kube/config) | ||
--log-http log http traffic | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [kn](kn.md) - Knative client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters