Add bash auto completion support

Adds auto completion support that's generated via:
```
$ kompose complete
```

This file is added to /etc/bash_completion.d/kompose.sh
This commit is contained in:
Charlie Drage
2017-01-17 14:06:30 -05:00
parent 6e260bab0b
commit a58cd69d0d
2 changed files with 233 additions and 3 deletions
+11 -3
View File
@@ -70,12 +70,20 @@ Kompose is in Fedora 24 and 25 repositories. You can install it just like any ot
sudo dnf -y install kompose
```
## Bash Completion
## Shell autocompletion
Running this below command in order to benefit from bash completion
We support both `bash` and `zsh` for autocompletion.
Bash:
```console
$ PROG=kompose source script/bash_autocomplete
source <(kompose completion bash)
```
Zsh:
```console
source <(kompose completion zsh)
```
## Building