chore: setup some defaults

This commit is contained in:
2025-06-05 03:52:48 +01:00
parent a67726919d
commit af8323cdb0
7 changed files with 54 additions and 15 deletions
+18
View File
@@ -0,0 +1,18 @@
package lib
import (
"os"
"path/filepath"
)
func GetConfigDirectory() (string, error) {
home, err := os.UserHomeDir()
if err != nil {
return "", err
}
config, err := filepath.Abs(filepath.Join(home, DEFAULT_CONFIG_DIRECTORY))
return config, nil
}