diff --git a/Cargo.toml b/Cargo.toml index 5fd975b..fa57e7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ axum = "0.7" base32 = "0.4" base64 = "0.21" chrono = { version = "0.4", features = ["serde"] } -clap = { version = "4.4", features = ["derive", "cargo", "color"] } +clap = { version = "4.4", features = ["derive", "cargo", "color", "env"] } dialoguer = "0.11.0" dirs = "5.0" fs4 = { version = "0.7", features = ["tokio"] } diff --git a/src/commands/global_args.rs b/src/commands/global_args.rs index 1c48caf..9a555b8 100644 --- a/src/commands/global_args.rs +++ b/src/commands/global_args.rs @@ -8,6 +8,7 @@ pub struct GlobalArgs { #[arg( long, default_value = "https://app.aqora.io", + env = "AQORA_URL", global = true, hide = true )]