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

Struct MultiAccountDeprecated

internal/config/migration/multi_account.go:80–83  ·  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

78// executable documentation of the original migration and its compatibility
79// constraints.
80type MultiAccountDeprecated struct {
81 // Allow injecting a transport layer in tests.
82 Transport http.RoundTripper
83}
84
85func (m MultiAccountDeprecated) PreVersion() string {
86 // 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