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

Function externalHttpClientFunc

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

Source from the content-addressed store, hash-verified

299}
300
301func externalHttpClientFunc(ios *iostreams.IOStreams, appVersion string) func() (*http.Client, error) {
302 return func() (*http.Client, error) {
303 return api.NewExternalHTTPClient(api.ExternalHTTPClientOptions{
304 AppVersion: appVersion,
305 Log: ios.ErrOut,
306 LogColorize: ios.ColorEnabled(),
307 })
308 }
309}
310
311func newGitClient(f *cmdutil.Factory) *git.Client {
312 io := f.IOStreams

Callers 1

NewFunction · 0.85

Calls 2

NewExternalHTTPClientFunction · 0.92
ColorEnabledMethod · 0.80

Tested by

no test coverage detected