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