From 27c0edf410c21d63f52606434eda7c82e14cae25 Mon Sep 17 00:00:00 2001 From: Julian Popescu Date: Thu, 14 Mar 2024 12:40:18 +0100 Subject: [PATCH] use environment variable as default for aqora url --- Cargo.toml | 2 +- src/commands/global_args.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 )]