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

Function externalHttpClientFunc

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

Source from the content-addressed store, hash-verified

285}
286
287func externalHttpClientFunc(ios *iostreams.IOStreams, appVersion string) func() (*http.Client, error) {
288 return func() (*http.Client, error) {
289 return api.NewExternalHTTPClient(api.ExternalHTTPClientOptions{
290 AppVersion: appVersion,
291 Log: ios.ErrOut,
292 LogColorize: ios.ColorEnabled(),
293 })
294 }
295}
296
297func newGitClient(f *cmdutil.Factory) *git.Client {
298 io := f.IOStreams

Callers 1

NewFunction · 0.85

Calls 2

NewExternalHTTPClientFunction · 0.92
ColorEnabledMethod · 0.80

Tested by

no test coverage detected