From 6a78fcaa0a5451e8b9839c689b01c9264e391401 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 10 Feb 2021 17:57:11 +0100 Subject: 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 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 14e428397..49250f2fd 100644 --- a/Makefile +++ b/Makefile @@ -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"; \ -- cgit v1.2.3-54-g00ecf