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