Clean up config file name stuff

This commit is contained in:
Jon Staab
2026-05-26 15:50:14 -07:00
parent 2fcc48abed
commit e9260f40f1
7 changed files with 65 additions and 63 deletions
+3 -2
View File
@@ -25,8 +25,9 @@ func main() {
os.Exit(1)
}
// Load config for the specified relay
config, err := zooid.LoadConfigFromId(*relay)
name := zooid.ConfigNameFromId(*relay)
path := zooid.ConfigPathFromName(name)
config, err := zooid.LoadConfigFromPath(path)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
+3 -2
View File
@@ -39,8 +39,9 @@ func main() {
os.Exit(1)
}
// Load config for the specified relay
config, err := zooid.LoadConfigFromId(*relay)
name := zooid.ConfigNameFromId(*relay)
path := zooid.ConfigPathFromName(name)
config, err := zooid.LoadConfigFromPath(path)
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)