MCPcopy Index your code
hub / github.com/cli/cli / MultiAccount

Struct MultiAccount

internal/config/migration/multi_account.go:71–74  ·  view source on GitHub ↗

This migration exists to take a hosts section of the following structure: github.com: user: williammartin git_protocol: https editor: vim github.localhost: user: monalisa git_protocol: https oauth_token: xyz We want this to migrate to something like: github.com: user: williamma

Source from the content-addressed store, hash-verified

69// in the config for oauth tokens that are stored insecurely.
70
71type MultiAccount struct {
72 // Allow injecting a transport layer in tests.
73 Transport http.RoundTripper
74}
75
76func (m MultiAccount) PreVersion() string {
77 // It is expected that there is no version key since this migration

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected