Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip keyring access for CLI shell completion

awss84003f74546d
diff --git a/cli/main.go b/cli/main.go
index 2d0e84c174..7607bdac21 100644
--- a/cli/main.go
+++ b/cli/main.go
@@ -8,6 +8,7 @@ import (
"github.com/ente/cli/pkg"
"github.com/ente/cli/pkg/secrets"
"github.com/ente/cli/utils/constants"
+ "github.com/spf13/cobra"
"github.com/spf13/viper"
"log"
"os"
@@ -50,7 +51,14 @@ func main() {
}
}
- skipInitCommands := map[string]struct{}{"version": {}, "docs": {}, "help": {}}
+ skipInitCommands := map[string]struct{}{
+ "version": {},
+ "docs": {},
+ "help": {},
+ "completion": {},
+ cobra.ShellCompRequestCmd: {},
+ cobra.ShellCompNoDescRequestCmd: {},
+ }
var keyHolder *secrets.KeyHolder
shouldInit := len(os.Args) > 1