We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a94cadc + 6cf6bb4 commit 355d281Copy full SHA for 355d281
pkg/cmdutil/auth_check.go
@@ -34,9 +34,11 @@ func CheckAuth(cfg config.Config) bool {
34
}
35
36
func IsAuthCheckEnabled(cmd *cobra.Command) bool {
37
- if cmd.Name() == "help" {
+ switch cmd.Name() {
38
+ case "help", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd:
39
return false
40
41
+
42
for c := cmd; c.Parent() != nil; c = c.Parent() {
43
if c.Annotations != nil && c.Annotations["skipAuthCheck"] == "true" {
44
0 commit comments