MCPcopy Create free account
hub / github.com/cli/cli / extensionManager

Function extensionManager

pkg/cmd/factory/default.go:273–290  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

271}
272
273func 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.

Callers 1

NewFunction · 0.85

Calls 5

SetConfigMethod · 0.95
SetClientMethod · 0.95
NewManagerFunction · 0.92
NewCachedHTTPClientFunction · 0.92
ConfigMethod · 0.65

Tested by

no test coverage detected