MCPcopy
hub / github.com/cli/cli / DisableAuthCheckFlag

Function DisableAuthCheckFlag

pkg/cmdutil/auth_check.go:21–27  ·  view source on GitHub ↗
(flag *pflag.Flag)

Source from the content-addressed store, hash-verified

19}
20
21func DisableAuthCheckFlag(flag *pflag.Flag) {
22 if flag.Annotations == nil {
23 flag.Annotations = map[string][]string{}
24 }
25
26 flag.Annotations[skipAuthCheckAnnotation] = []string{"true"}
27}
28
29func CheckAuth(cfg gh.Config) bool {
30 if cfg.Authentication().HasEnvToken() {

Callers 3

NewVerifyCmdFunction · 0.92
NewCmdInstallFunction · 0.92
Test_IsAuthCheckEnabledFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_IsAuthCheckEnabledFunction · 0.68