Initial commit

This commit is contained in:
eleksir
2026-04-02 23:56:28 +03:00
commit 9e30243533
34 changed files with 8413 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
//go:build darwin || freebsd || openbsd || netbsd || dragonfly
// @tag config
// @tag platform:bsd
package config
import (
"os"
"path/filepath"
)
// DefaultConfigPaths returns the config file search paths for BSD and macOS.
// Looks up ~/.pekoe.json first, then /usr/local/etc/pekoe/config.json.
func DefaultConfigPaths() []string {
home, err := os.UserHomeDir()
if err != nil {
return []string{"/usr/local/etc/pekoe/config.json"}
}
return []string{
filepath.Join(home, ".pekoe.json"),
"/usr/local/etc/pekoe/config.json",
}
}