From 20c33e0d54be1d13f09c638ddd1371f7f5a52c40 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 19 Jul 2022 12:28:15 -0400 Subject: [PATCH] fix(server): disable cobra completions over ssh --- server/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/middleware.go b/server/middleware.go index 7a6bc3674..44ea5c7d6 100644 --- a/server/middleware.go +++ b/server/middleware.go @@ -30,6 +30,7 @@ func softMiddleware(ac *appCfg.Config) wish.Middleware { use += fmt.Sprintf(" %s", ac.Host) cmd := cmd.RootCommand() cmd.Use = use + cmd.CompletionOptions.DisableDefaultCmd = true cmd.SetIn(s) cmd.SetOut(s) cmd.SetErr(s.Stderr())