MCPcopy
hub / github.com/cli/cli / Manager

Struct Manager

pkg/cmd/extension/manager.go:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42const darwinAmd64 = "darwin-amd64"
43
44type Manager struct {
45 dataDir func() string
46 updateDir func() string
47 lookPath func(string) (string, error)
48 findSh func() (string, error)
49 newCommand func(string, ...string) *exec.Cmd
50 platform func() (string, string)
51 client *http.Client
52 gitClient gitClient
53 config gh.Config
54 io *iostreams.IOStreams
55 dryRunMode bool
56}
57
58func NewManager(ios *iostreams.IOStreams, gc *git.Client) *Manager {
59 return &Manager{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected