From 0b67d08f136ae31d2e1dcf6052ca55bd60c367a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Francisco=20Varela=20Guti=C3=A9rrez?= Date: Tue, 23 Aug 2022 14:02:15 -0500 Subject: [PATCH] Added plugin for tekton ci/cd CLI --- plugins/tkn/README.md | 17 +++++++++++++++++ plugins/tkn/tkn.plugin.zsh | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 plugins/tkn/README.md create mode 100644 plugins/tkn/tkn.plugin.zsh diff --git a/plugins/tkn/README.md b/plugins/tkn/README.md new file mode 100644 index 000000000..ace41b54a --- /dev/null +++ b/plugins/tkn/README.md @@ -0,0 +1,17 @@ +# Tekton CLI + +This plugin provides autocompletion for [tkn](https://tekton.dev/docs/cli/). A command for easier interaction with Tekton CI/CD components. + +To use it, add `tkn` to the plugins array of your zshrc file: + +```bash +plugins=(... tkn) +``` + +## See Also + ++ [tektoncd/cli](https://github.com/tektoncd/cli) + +## Contributors + ++ [jvarela01](https://github.com/jvarela01) - Plugin Author \ No newline at end of file diff --git a/plugins/tkn/tkn.plugin.zsh b/plugins/tkn/tkn.plugin.zsh new file mode 100644 index 000000000..5f359a947 --- /dev/null +++ b/plugins/tkn/tkn.plugin.zsh @@ -0,0 +1,7 @@ +# Autocompletion for tkn, the command line interface for Tekton Cloud Natice CI/CD (https://tekton.dev/) +# Author: https://github.com/jvarela01 + +if [ $commands[tkn] ]; then + source <(tkn completion zsh) + compdef _tkn tkn +fi \ No newline at end of file