MCPcopy Create free account
hub / github.com/cli/cli / ActiveTokenType

Method ActiveTokenType

internal/gh/gh.go:147–147  ·  view source on GitHub ↗

ActiveTokenType reports what kind of credential the active token for the hostname is, so a caller can decide whether it will do without handling the token itself.

(hostname string)

Source from the content-addressed store, hash-verified

145 // hostname is, so a caller can decide whether it will do without handling
146 // the token itself.
147 ActiveTokenType(hostname string) TokenType
148
149 // HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
150 HasEnvToken() bool

Callers 6

createRunFunction · 0.65
editRunFunction · 0.65
CommentableRunFunction · 0.65
createRunFunction · 0.65
editRunFunction · 0.65
TestActiveTokenTypeFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 1

TestActiveTokenTypeFunction · 0.52