mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-02 05:08:42 -07:00
- Add brew package for Homebrew support on macOS and Linux - Implement NameNormalizer interface (NormalizeName, ParseArch) for all providers - Add darwin platform detection with Homebrew as default - Consolidate capabilities by removing separate *_linux.go/*_other.go files - Update tests for new capability expectations - Add comprehensive tests for AUR and brew providers - Update README with capability matrix and modern Target API usage 💘 Generated with Crush Assisted-by: AWS Claude Opus 4.5 via Crush <crush@charm.land>
21 lines
413 B
Go
21 lines
413 B
Go
//go:build darwin
|
|
|
|
package detect
|
|
|
|
import (
|
|
"github.com/gogrlx/snack"
|
|
"github.com/gogrlx/snack/brew"
|
|
)
|
|
|
|
// candidates returns manager factories in probe order for macOS.
|
|
func candidates() []managerFactory {
|
|
return []managerFactory{
|
|
func() snack.Manager { return brew.New() },
|
|
}
|
|
}
|
|
|
|
// allManagers returns all known manager factories (for ByName).
|
|
func allManagers() []managerFactory {
|
|
return candidates()
|
|
}
|