diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-02-10 17:57:11 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-03-29 15:00:09 +0200 |
commit | 6a78fcaa0a5451e8b9839c689b01c9264e391401 (patch) | |
tree | aaf09ea076b9a531526d7836fd0709a98a8e606b /Makefile | |
parent | 259004f0a9cc18018127baec0bfcf8bc091dabb6 (diff) | |
download | podman-6a78fcaa0a5451e8b9839c689b01c9264e391401.tar.gz podman-6a78fcaa0a5451e8b9839c689b01c9264e391401.tar.bz2 podman-6a78fcaa0a5451e8b9839c689b01c9264e391401.zip |
Add powershell completions
Add support for generating powershell completion files. This is especially
useful for people using the podman remote client on windows.
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -536,6 +536,7 @@ install.completions: install ${SELINUXOPT} -d -m 755 ${DESTDIR}${FISHINSTALLDIR} install ${SELINUXOPT} -m 644 completions/fish/podman.fish ${DESTDIR}${FISHINSTALLDIR} install ${SELINUXOPT} -m 644 completions/fish/podman-remote.fish ${DESTDIR}${FISHINSTALLDIR} + # There is no common location for powershell files so do not install them. Users have to source the file from their powershell profile. .PHONY: install.cni install.cni: @@ -658,7 +659,7 @@ install.libseccomp.sudo: .PHONY: completions completions: podman podman-remote # key = shell, value = completion filename - declare -A outfiles=([bash]=%s [zsh]=_%s [fish]=%s.fish);\ + declare -A outfiles=([bash]=%s [zsh]=_%s [fish]=%s.fish [powershell]=%s.ps1);\ for shell in $${!outfiles[*]}; do \ for remote in "" "-remote"; do \ podman="podman$$remote"; \ |