Skip to content

Commit 83c2674

Browse files
committed
chore: use dotenvx
1 parent 42bdae1 commit 83c2674

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::polyglot::PATH_SEPARATOR;
55
use crate::runners::justfile::init_justfile;
66
use crate::runners::RUNNERS;
77
use colored::Colorize;
8-
use dotenvy::dotenv;
8+
use dotenvx_rs::dotenvx;
99
use std::collections::HashSet;
1010
use std::env;
1111
use std::fs::Permissions;
@@ -734,12 +734,12 @@ fn format_description(description: &str) -> String {
734734
}
735735

736736
fn load_env() {
737-
dotenv().ok();
737+
dotenvx::dotenv().ok();
738738
if env::current_dir().unwrap().join(".flaskenv").exists() {
739-
dotenvy::from_filename(".flaskenv").ok();
739+
dotenvx::from_filename(".flaskenv").ok();
740740
}
741741
if let Ok(node_env) = env::var("NODE_ENV") {
742-
dotenvy::from_filename(format!(".env.{}", node_env)).ok();
742+
dotenvx::from_filename(format!(".env.{}", node_env)).ok();
743743
}
744744
}
745745

0 commit comments

Comments
 (0)