Skip to content

Commit a8240d5

Browse files
committed
add env var for profile
1 parent d020d1b commit a8240d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/cli/src/commands/auth/login.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use anyhow::Result;
33
use edgee_api_client::ResultExt;
44

55
setup_command! {
6-
#[arg(short, long, id = "PROFILE")]
6+
#[arg(short, long, id = "PROFILE", env = "EDGEE_API_PROFILE")]
77
profile: Option<String>,
88

99
#[arg(short, long, id = "URL")]

crates/cli/src/commands/auth/whoami.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use edgee_api_client::ResultExt;
22

33
setup_command! {
4-
#[arg(short, long, id = "PROFILE")]
4+
#[arg(short, long, id = "PROFILE", env = "EDGEE_API_PROFILE")]
55
profile: Option<String>,
66
}
77

crates/cli/src/commands/components/push.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct Options {
1313
/// Defaults to the user "self" org
1414
pub organization: Option<String>,
1515

16-
#[arg(short, long, id = "PROFILE")]
16+
#[arg(short, long, id = "PROFILE", env = "EDGEE_API_PROFILE")]
1717
profile: Option<String>,
1818
}
1919

0 commit comments

Comments
 (0)