MCPcopy Create free account
hub / github.com/algolia/cli / DisableAuthCheck

Function DisableAuthCheck

pkg/auth/auth_check.go:44–50  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

42)
43
44func DisableAuthCheck(cmd *cobra.Command) {
45 if cmd.Annotations == nil {
46 cmd.Annotations = map[string]string{}
47 }
48
49 cmd.Annotations["skipAuthCheck"] = "true"
50}
51
52func CheckAuth(cfg config.Config) error {
53 if cfg.Profile().Name == "" {

Callers 3

NewOpenCmdFunction · 0.92
NewAuthCmdFunction · 0.92
NewProfileCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected