MCPcopy
hub / github.com/larksuite/cli / DisableAuthCheck

Function DisableAuthCheck

internal/cmdutil/annotations.go:33–38  ·  view source on GitHub ↗

DisableAuthCheck marks a command (and all its children) as not requiring auth.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

31
32// DisableAuthCheck marks a command (and all its children) as not requiring auth.
33func DisableAuthCheck(cmd *cobra.Command) {
34 if cmd.Annotations == nil {
35 cmd.Annotations = map[string]string{}
36 }
37 cmd.Annotations[skipAuthCheckKey] = "true"
38}
39
40// IsAuthCheckDisabled returns true if the command or any ancestor has auth check disabled.
41func IsAuthCheckDisabled(cmd *cobra.Command) bool {

Callers 14

NewCmdCompletionFunction · 0.92
NewCmdAuthFunction · 0.92
NewCmdProfileFunction · 0.92
NewCmdDoctorFunction · 0.92
NewCmdSkillFunction · 0.92
newListCmdFunction · 0.92
newReadCmdFunction · 0.92
NewCmdUpdateFunction · 0.92
NewCmdSchemaFunction · 0.92
NewCmdWhoamiFunction · 0.92
NewCmdConfigFunction · 0.92
TestDisableAuthCheckFunction · 0.85

Calls

no outgoing calls