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

Method Warnings

internal/gh/gh.go:235–235  ·  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

233 // Warnings returns the deduplicated warnings recorded so far in this process, such as a skipped token refresh, in
234 // the order they were first recorded. Callers are expected to show them to the user before gh exits.
235 Warnings() []string
236
237 // ActiveToken retrieves the active credential for the given hostname, searching environment variables, general
238 // 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