(f *cmdutil.Factory)
| 327 | } |
| 328 | |
| 329 | func extensionManager(f *cmdutil.Factory) *extension.Manager { |
| 330 | em := extension.NewManager(f.IOStreams, f.GitClient, f.ExecutablePath) |
| 331 | |
| 332 | cfg, err := f.Config() |
| 333 | if err != nil { |
| 334 | return em |
| 335 | } |
| 336 | em.SetConfig(cfg) |
| 337 | |
| 338 | client, err := f.HttpClient() |
| 339 | if err != nil { |
| 340 | return em |
| 341 | } |
| 342 | |
| 343 | em.SetClient(api.NewCachedHTTPClient(client, time.Second*30)) |
| 344 | |
| 345 | return em |
| 346 | } |
| 347 | |
| 348 | // SSOURL returns the URL of a SAML SSO challenge received by the server for clients that use ExtractHeader |
| 349 | // to extract the value of the "X-GitHub-SSO" response header. |
no test coverage detected