mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-02 05:08:42 -07:00
pacman: - VersionQuerier: latestVersion via pacman -Si, listUpgrades via pacman -Qu, upgradeAvailable via pacman -Qu <pkg>, versionCmp via vercmp - Cleaner: autoremove via pacman -Qdtq | pacman -Rns, clean via pacman -Sc - FileOwner: fileList via pacman -Ql, owner via pacman -Qo - Grouper: groupList/groupInfo via pacman -Sg, groupInstall via pacman -S - Note: Holder skipped (no clean CLI support) apk: - VersionQuerier: latestVersion via apk policy, listUpgrades via apk upgrade --simulate, upgradeAvailable by checking upgrade list, versionCmp via apk version -t - Cleaner: clean via apk cache clean, autoremove is no-op (not supported) - FileOwner: fileList via apk info -L, owner via apk info --who-owns
42 lines
911 B
Go
42 lines
911 B
Go
//go:build !linux
|
|
|
|
package apk
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gogrlx/snack"
|
|
)
|
|
|
|
func latestVersion(_ context.Context, _ string) (string, error) {
|
|
return "", snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func listUpgrades(_ context.Context) ([]snack.Package, error) {
|
|
return nil, snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func upgradeAvailable(_ context.Context, _ string) (bool, error) {
|
|
return false, snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func versionCmp(_ context.Context, _, _ string) (int, error) {
|
|
return 0, snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func autoremove(_ context.Context, _ ...snack.Option) error {
|
|
return snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func clean(_ context.Context) error {
|
|
return snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func fileList(_ context.Context, _ string) ([]string, error) {
|
|
return nil, snack.ErrUnsupportedPlatform
|
|
}
|
|
|
|
func owner(_ context.Context, _ string) (string, error) {
|
|
return "", snack.ErrUnsupportedPlatform
|
|
}
|