Files
wild-cli/internal/config/config.go
2025-10-12 00:41:23 +00:00

18 lines
351 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_API_URI"); url != "" {
return url
}
// Use default matching daemon's port
return "http://localhost:5055"
}