MCPcopy Index your code
hub / github.com/larksuite/cli / IsAuthCheckDisabled

Function IsAuthCheckDisabled

internal/cmdutil/annotations.go:41–48  ·  view source on GitHub ↗

IsAuthCheckDisabled returns true if the command or any ancestor has auth check disabled.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

39
40// IsAuthCheckDisabled returns true if the command or any ancestor has auth check disabled.
41func IsAuthCheckDisabled(cmd *cobra.Command) bool {
42 for c := cmd; c != nil; c = c.Parent() {
43 if c.Annotations != nil && c.Annotations[skipAuthCheckKey] == "true" {
44 return true
45 }
46 }
47 return false
48}

Calls

no outgoing calls