Install the new shell completion logic

Add a new make target (completion) to generate the shell
completion scripts. This will generate the scripts for bash,
zsh and fish for both podman and podman-remote with `podman completion`.
The scripts are put into the completions directory and can be
installed system wide with `sudo make install.completions`.

This commit replaces the current handwritten scripts for bash and zsh.

The `validate.completion` target has been adjusted to make sure nobody
edits these scripts directly.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
Paul Holzinger
2020-11-08 21:50:51 +01:00
parent b5d1d89a37
commit ae3816614d
10 changed files with 1262 additions and 3940 deletions

View File

@ -11,14 +11,14 @@ The completion command allows you to generate shell completion scripts. Supporte
These script are used by the shell to provide suggestions and complete commands when you are typing the command and press [TAB].
Usually these scripts are automatically installed via rpm/deb packages.
Usually these scripts are automatically installed via the package manager.
## OPTIONS
**--file**, **-f**
#### **--file**, **-f**
Write the generated output to file.
**--no-desc**
#### **--no-desc**
Do not provide description in the completions.