Enable autosuggestions but hide it from commands

This commit is contained in:
bytedream 2022-04-30 21:25:40 +02:00
parent e65535bf00
commit a49e65e151

View file

@ -58,7 +58,7 @@ func init() {
} }
func Execute() { func Execute() {
rootCmd.CompletionOptions.DisableDefaultCmd = true rootCmd.CompletionOptions.HiddenDefaultCmd = true
defer func() { defer func() {
if r := recover(); r != nil { if r := recover(); r != nil {
if out.IsDev() { if out.IsDev() {