Skip to content

Commit

Permalink
fix(server): disable cobra completions over ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 3, 2022
1 parent e415cf9 commit 20c33e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 20c33e0

Please sign in to comment.