From 074bf4cc9d0219c36409f53175c09d4a23ecaeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:22:05 +0200 Subject: [PATCH] add support for .env file --- Cargo.toml | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 6be9208..de8add6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,4 +29,5 @@ shulkerbox = { git = "https://github.com/moritz-hoelting/shulkerbox", default-fe git2 = { version = "0.18.3", default-features = false } path-absolutize = "3.1.1" color-eyre = "0.6.3" +dotenvy = "0.15.7" diff --git a/src/main.rs b/src/main.rs index b246dbf..46bec68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,8 @@ use shulkerscript::cli::Args; fn main() -> ExitCode { color_eyre::install().unwrap(); + let _ = dotenvy::dotenv(); + let args = Args::parse(); match args.run() {