(ios *iostreams.IOStreams, appVersion string)
| 228 | } |
| 229 | |
| 230 | func 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 | |
| 240 | func newGitClient(f *cmdutil.Factory) *git.Client { |
| 241 | io := f.IOStreams |
no test coverage detected