diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-12-01 12:32:27 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-12-07 15:20:57 -0500 |
commit | 0a4e44fc2bd9471b6cf50a2c6c1e5d11598b9d81 (patch) | |
tree | ca835fd6827ac6de2ac7b7a956e37c0a08df294d /cmd | |
parent | 1ad0554d99c45a7322160968fd4c8fa143fa7377 (diff) | |
download | podman-0a4e44fc2bd9471b6cf50a2c6c1e5d11598b9d81.tar.gz podman-0a4e44fc2bd9471b6cf50a2c6c1e5d11598b9d81.tar.bz2 podman-0a4e44fc2bd9471b6cf50a2c6c1e5d11598b9d81.zip |
Revert the custom cobra vendor
Vendor in the latest cobra release v1.1.1
This will hurt the completion experience but is required for
proper packaging, see: #8528.
The best solution is to keep the current scripts since they
work fine with cobra v1.1.1.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/completion/completion.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/podman/completion/completion.go b/cmd/podman/completion/completion.go index ead8d1f05..84942a508 100644 --- a/cmd/podman/completion/completion.go +++ b/cmd/podman/completion/completion.go @@ -67,11 +67,7 @@ func completion(cmd *cobra.Command, args []string) error { var err error switch args[0] { case "bash": - if noDesc { - err = cmd.Root().GenBashCompletion(w) - } else { - err = cmd.Root().GenBashCompletionWithDesc(w) - } + err = cmd.Root().GenBashCompletion(w) case "zsh": if noDesc { err = cmd.Root().GenZshCompletionNoDesc(w) |