mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-01 20:58:42 -07:00
The ports package was fully implemented but detect_openbsd.go still returned nil candidates with a stale TODO. Wire up ports.New() so OpenBSD systems can auto-detect their package manager. Also adds: - Unit tests for GetCapabilities with mock managers (base + full) - Unit tests for Locker mutual exclusion - Edge case tests for ports parser (empty input, whitespace, fallback) - Minor dep updates (charmbracelet/ultraviolet, charmbracelet/x)
20 lines
353 B
Go
20 lines
353 B
Go
//go:build openbsd
|
|
|
|
package detect
|
|
|
|
import (
|
|
"github.com/gogrlx/snack"
|
|
"github.com/gogrlx/snack/ports"
|
|
)
|
|
|
|
// candidates returns manager factories in probe order for OpenBSD.
|
|
func candidates() []managerFactory {
|
|
return []managerFactory{
|
|
func() snack.Manager { return ports.New() },
|
|
}
|
|
}
|
|
|
|
func allManagers() []managerFactory {
|
|
return candidates()
|
|
}
|