From 766cff650c1fd1b3796d176918e3f7a58cad6e70 Mon Sep 17 00:00:00 2001 From: Kevin S Kirkup Date: Wed, 3 Apr 2019 08:42:37 -0400 Subject: [PATCH] Add plugin for kompose --- plugins/kompose/README.md | 12 ++++++++++++ plugins/kompose/kompose.plugin.zsh | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 plugins/kompose/README.md create mode 100644 plugins/kompose/kompose.plugin.zsh diff --git a/plugins/kompose/README.md b/plugins/kompose/README.md new file mode 100644 index 000000000..e86d9263b --- /dev/null +++ b/plugins/kompose/README.md @@ -0,0 +1,12 @@ +# kompose + +This plugin provides completion for [kompose](https://github.com/kubernetes/kompose), +to migrate from docker compose to Kubernetes resource definitions. + +To use it, add `kompose` to the plugins array in your zshrc file. + +``` +plugins=(... kompose) +``` + +**Author:** [@kevinkirkup](https://github.com/kevinkirkup) diff --git a/plugins/kompose/kompose.plugin.zsh b/plugins/kompose/kompose.plugin.zsh new file mode 100644 index 000000000..764e724e6 --- /dev/null +++ b/plugins/kompose/kompose.plugin.zsh @@ -0,0 +1,3 @@ +if [ $commands[kompose] ]; then + source <(kompose completion zsh) +fi