(ios *iostreams.IOStreams, appVersion string)
| 285 | } |
| 286 | |
| 287 | func 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 | |
| 297 | func newGitClient(f *cmdutil.Factory) *git.Client { |
| 298 | io := f.IOStreams |
no test coverage detected