(ios *iostreams.IOStreams, appVersion string)
| 299 | } |
| 300 | |
| 301 | func 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 | |
| 311 | func newGitClient(f *cmdutil.Factory) *git.Client { |
| 312 | io := f.IOStreams |
no test coverage detected