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

Function externalHttpClientFunc

pkg/cmd/factory/default.go:231–239  ·  view source on GitHub ↗
(ios *iostreams.IOStreams, appVersion string)

Source from the content-addressed store, hash-verified

229}
230
231func externalHttpClientFunc(ios *iostreams.IOStreams, appVersion string) func() (*http.Client, error) {
232 return func() (*http.Client, error) {
233 return api.NewExternalHTTPClient(api.ExternalHTTPClientOptions{
234 AppVersion: appVersion,
235 Log: ios.ErrOut,
236 LogColorize: ios.ColorEnabled(),
237 })
238 }
239}
240
241func newGitClient(f *cmdutil.Factory) *git.Client {
242 io := f.IOStreams

Callers 1

NewFunction · 0.85

Calls 2

NewExternalHTTPClientFunction · 0.92
ColorEnabledMethod · 0.80

Tested by

no test coverage detected