summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-07-01 20:01:44 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-07-02 17:49:12 +0200
commit84da70a0f36e7d6fc87919ca4a69b20bc9d43f72 (patch)
tree696da47db75d9491d1b9567334c96f915e067f8b /cmd/podman
parent924cd37a37f1c58911ce7bc10b82ec9579c5c70e (diff)
downloadpodman-84da70a0f36e7d6fc87919ca4a69b20bc9d43f72.tar.gz
podman-84da70a0f36e7d6fc87919ca4a69b20bc9d43f72.tar.bz2
podman-84da70a0f36e7d6fc87919ca4a69b20bc9d43f72.zip
update shell completion scripts
The new cobra v1.2.0 release brings a number of bug fixes for shell completion scripts. Regenerate the scripts with `make completions` to sync them with the upstream version, currently we have some custom ones to avoid some upstream bugs. Because the new cobra version has all fixes we should use the upstream scripts. Add a check to CI to ensure we always use the up to date scripts. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/completion/completion.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/completion/completion.go b/cmd/podman/completion/completion.go
index da74eefdd..12fba9a54 100644
--- a/cmd/podman/completion/completion.go
+++ b/cmd/podman/completion/completion.go
@@ -65,7 +65,7 @@ func completion(cmd *cobra.Command, args []string) error {
var err error
switch args[0] {
case "bash":
- err = cmd.Root().GenBashCompletion(w)
+ err = cmd.Root().GenBashCompletionV2(w, !noDesc)
case "zsh":
if noDesc {
err = cmd.Root().GenZshCompletionNoDesc(w)