MCPcopy
hub / github.com/cli/cli / remotesFunc

Function remotesFunc

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

Source from the content-addressed store, hash-verified

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