diff options
author | jxlwqq <jxlwqq@gmail.com> | 2021-12-18 07:54:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 15:54:19 -0800 |
commit | a150d8a7c0040de5a1b0246728dc3c2af3b4c423 (patch) | |
tree | c417458581eedadf1a3da914786343e902fe311b /plugins/istioctl | |
parent | 08d086a09c0181b733a9f5565fc242ca148fd80a (diff) | |
download | zsh-a150d8a7c0040de5a1b0246728dc3c2af3b4c423.tar.gz zsh-a150d8a7c0040de5a1b0246728dc3c2af3b4c423.tar.bz2 zsh-a150d8a7c0040de5a1b0246728dc3c2af3b4c423.zip |
feat(istioctl): add plugin for istioctl (#10410)
* Add plugin for istioctl completion. close #10405
* fix typo
* Update README.md
Diffstat (limited to 'plugins/istioctl')
-rw-r--r-- | plugins/istioctl/README.md | 9 | ||||
-rw-r--r-- | plugins/istioctl/istioctl.plugin.zsh | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/plugins/istioctl/README.md b/plugins/istioctl/README.md new file mode 100644 index 000000000..afd4d293c --- /dev/null +++ b/plugins/istioctl/README.md @@ -0,0 +1,9 @@ +# Istioctl - Istio Command-line Tool + +The [istioctl](https://istio.io/latest/docs/ops/diagnostic-tools/istioctl/) tool is a configuration command line utility that allows service operators to debug and diagnose their Istio service mesh deployments. + +To use it, add `istioctl` to the plugins array of your zshrc file: + +```sh +plugins=(... istioctl) +``` diff --git a/plugins/istioctl/istioctl.plugin.zsh b/plugins/istioctl/istioctl.plugin.zsh new file mode 100644 index 000000000..13ead1b2b --- /dev/null +++ b/plugins/istioctl/istioctl.plugin.zsh @@ -0,0 +1,4 @@ +if [ $commands[istioctl] ]; then + source <(istioctl completion zsh) + compdef _istioctl istioctl +fi |