summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-12-01 12:32:27 +0100
committerPaul Holzinger <paul.holzinger@web.de>2020-12-01 14:15:18 +0100
commit3d4a0e42b3ef1f36d7bdfd211ad0e8cb43b242e6 (patch)
treea967a31d9c708a80d6aefa84fb1389dc94b4f446 /cmd
parentca612a3407eeecfedc38b629731f1e7a0105020f (diff)
downloadpodman-3d4a0e42b3ef1f36d7bdfd211ad0e8cb43b242e6.tar.gz
podman-3d4a0e42b3ef1f36d7bdfd211ad0e8cb43b242e6.tar.bz2
podman-3d4a0e42b3ef1f36d7bdfd211ad0e8cb43b242e6.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.go6
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)