17 lines
460 B
Go
17 lines
460 B
Go
//go:build !windows
|
|
|
|
package pkgmanager
|
|
|
|
import "fmt"
|
|
|
|
// BootstrapManagers is a no-op on non-Windows platforms.
|
|
// On Windows it installs the Microsoft App Installer (winget) and
|
|
// Chocolatey if they are not already present.
|
|
func BootstrapManagers() error {
|
|
return nil
|
|
}
|
|
|
|
// listWindowsPackages is only implemented on Windows.
|
|
func listWindowsPackages() ([]PackageInfo, error) {
|
|
return nil, fmt.Errorf("windows package listing only available on Windows")
|
|
} |