浏览代码

added svcat plugin (#7452)

Including a Kubernetes Service Catalog plugin
Ben Davies 5 年之前
父节点
当前提交
d0c06d9ec8
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. 9 0
      plugins/svcat/README.md
  2. 6 0
      plugins/svcat/svcat.plugin.zsh

+ 9 - 0
plugins/svcat/README.md

@@ -0,0 +1,9 @@
+# svcat
+
+This plugin provides completion for the [Kubernetes service catalog cli](https://github.com/kubernetes-incubator/service-catalog).
+
+To use it, add `svcat` to the plugins array in your zshrc file.
+
+```
+plugins=(... svcat)
+```

+ 6 - 0
plugins/svcat/svcat.plugin.zsh

@@ -0,0 +1,6 @@
+# Autocompletion for svcat.
+#
+
+if [ $commands[svcat] ]; then
+  source <(svcat completion zsh)
+fi