(f *cmdutil.Factory)
| 341 | } |
| 342 | |
| 343 | func extensionManager(f *cmdutil.Factory) *extension.Manager { |
| 344 | em := extension.NewManager(f.IOStreams, f.GitClient, f.ExecutablePath) |
| 345 | |
| 346 | cfg, err := f.Config() |
| 347 | if err != nil { |
| 348 | return em |
| 349 | } |
| 350 | em.SetConfig(cfg) |
| 351 | |
| 352 | client, err := f.HttpClient() |
| 353 | if err != nil { |
| 354 | return em |
| 355 | } |
| 356 | |
| 357 | em.SetClient(api.NewCachedHTTPClient(client, time.Second*30)) |
| 358 | |
| 359 | return em |
| 360 | } |
| 361 | |
| 362 | // SSOURL returns the URL of a SAML SSO challenge received by the server for clients that use ExtractHeader |
| 363 | // to extract the value of the "X-GitHub-SSO" response header. |
no test coverage detected