Files
wild-cli/internal/config/config.go
2025-10-11 17:19:11 +00:00

18 lines
354 B
Go

// Package config handles CLI configuration
package config
import (
"os"
)
// GetDaemonURL returns the daemon URL from environment or default
func GetDaemonURL() string {
// Check environment variable first
if url := os.Getenv("WILD_DAEMON_URL"); url != "" {
return url
}
// Use default matching daemon's port
return "http://localhost:5055"
}