MCPcopy
hub / github.com/cli/cli / externalHttpClientFunc

Function externalHttpClientFunc

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

Source from the content-addressed store, hash-verified

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

Callers 1

NewFunction · 0.85

Calls 2

NewExternalHTTPClientFunction · 0.92
ColorEnabledMethod · 0.80

Tested by

no test coverage detected