Initial commit.
This commit is contained in:
17
internal/config/config.go
Normal file
17
internal/config/config.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user