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