Updates env var name.
This commit is contained in:
@@ -57,7 +57,7 @@ func Execute() {
|
||||
|
||||
func init() {
|
||||
// Global flags
|
||||
rootCmd.PersistentFlags().StringVar(&daemonURL, "daemon-url", "", "Daemon URL (default: $WILD_DAEMON_URL or http://localhost:5055)")
|
||||
rootCmd.PersistentFlags().StringVar(&daemonURL, "daemon-url", "", "Daemon URL (default: $WILD_API_URI or http://localhost:5055)")
|
||||
rootCmd.PersistentFlags().StringVar(&instanceName, "instance", "", "Instance name (overrides current instance)")
|
||||
rootCmd.PersistentFlags().StringVarP(&outputFormat, "output", "o", "text", "Output format (text, json, yaml)")
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
// GetDaemonURL returns the daemon URL from environment or default
|
||||
func GetDaemonURL() string {
|
||||
// Check environment variable first
|
||||
if url := os.Getenv("WILD_DAEMON_URL"); url != "" {
|
||||
if url := os.Getenv("WILD_API_URI"); url != "" {
|
||||
return url
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user