| 43 | const darwinAmd64 = "darwin-amd64" |
| 44 | |
| 45 | type 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 | |
| 59 | func NewManager(ios *iostreams.IOStreams, gc *git.Client) *Manager { |
| 60 | return &Manager{ |
nothing calls this directly
no outgoing calls
no test coverage detected