mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Added plugin for tekton ci/cd CLI
This commit is contained in:
parent
6d48309cd7
commit
0b67d08f13
2 changed files with 24 additions and 0 deletions
17
plugins/tkn/README.md
Normal file
17
plugins/tkn/README.md
Normal file
|
@ -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
|
7
plugins/tkn/tkn.plugin.zsh
Normal file
7
plugins/tkn/tkn.plugin.zsh
Normal file
|
@ -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
|
Loading…
Reference in a new issue