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

Method Warnings

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

Warnings returns the deduplicated warnings recorded so far in this process, such as a skipped token refresh, in the order they were first recorded. Callers are expected to show them to the user before gh exits.

()

Source from the content-addressed store, hash-verified

232 // Warnings returns the deduplicated warnings recorded so far in this process, such as a skipped token refresh, in
233 // the order they were first recorded. Callers are expected to show them to the user before gh exits.
234 Warnings() []string
235
236 // ActiveToken retrieves the active credential for the given hostname, searching environment variables, general
237 // configuration, and finally encrypted storage. It returns the last stored token as-is, including the current

Callers 2

printAuthWarningsFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 1