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

Struct Manager

pkg/cmd/extension/manager.go:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected