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

Function remotesFunc

pkg/cmd/factory/default.go:179–187  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

177}
178
179func remotesFunc(f *cmdutil.Factory) func() (ghContext.Remotes, error) {
180 rr := &remoteResolver{
181 readRemotes: func() (git.RemoteSet, error) {
182 return f.GitClient.Remotes(context.Background())
183 },
184 getConfig: f.Config,
185 }
186 return rr.Resolver()
187}
188
189func HttpClientFunc(cfgFunc func() (gh.Config, error), ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemetryDisabler ghtelemetry.Disabler) func() (*http.Client, error) {
190 return func() (*http.Client, error) {

Callers 2

NewFunction · 0.85
BaseRepoFuncFunction · 0.85

Calls 2

ResolverMethod · 0.95
RemotesMethod · 0.65

Tested by

no test coverage detected