(f *cmdutil.Factory)
| 271 | } |
| 272 | |
| 273 | func extensionManager(f *cmdutil.Factory) *extension.Manager { |
| 274 | em := extension.NewManager(f.IOStreams, f.GitClient) |
| 275 | |
| 276 | cfg, err := f.Config() |
| 277 | if err != nil { |
| 278 | return em |
| 279 | } |
| 280 | em.SetConfig(cfg) |
| 281 | |
| 282 | client, err := f.HttpClient() |
| 283 | if err != nil { |
| 284 | return em |
| 285 | } |
| 286 | |
| 287 | em.SetClient(api.NewCachedHTTPClient(client, time.Second*30)) |
| 288 | |
| 289 | return em |
| 290 | } |
| 291 | |
| 292 | // SSOURL returns the URL of a SAML SSO challenge received by the server for clients that use ExtractHeader |
| 293 | // to extract the value of the "X-GitHub-SSO" response header. |
no test coverage detected