Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/cli/src/commands/auth/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ pub async fn perform_login() -> Result<String> {
// so an aborted re-login doesn't wipe an existing valid token.
let mut creds = crate::config::Credentials::default();

// Persist env-var URL overrides into the profile so they survive future invocations.
if let Ok(v) = std::env::var("EDGEE_CONSOLE_URL") { creds.console_url = Some(v); }
if let Ok(v) = std::env::var("EDGEE_CONSOLE_API_URL") { creds.console_api_url = Some(v); }
if let Ok(v) = std::env::var("EDGEE_API_URL") { creds.gateway_url = Some(v); }

let (user_token, email, user_id) = {
let (token, email, user_id) = browser_auth().await?;
println!();
Expand Down
18 changes: 0 additions & 18 deletions crates/cli/src/commands/init.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
mod macros;

setup_commands! {
/// Initialize a new Edgee project
Init(init),
/// Install shell aliases for Edgee launch commands
Alias(alias),
/// Authenticate with Edgee
Expand Down