PackageManager is a common interface across all package managers
| 14 | |
| 15 | // PackageManager is a common interface across all package managers |
| 16 | type PackageManager interface { |
| 17 | Name() string |
| 18 | Packages() packagemap |
| 19 | PackageInstalled(pkg *Package) (bool, error) |
| 20 | PackageAvailable(pkg *Package) (bool, error) |
| 21 | InstallCommand(pkg *Package) string |
| 22 | } |
| 23 | |
| 24 | // Dependency represents a system package that we require |
| 25 | type Dependency struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…