From 00b17ca17ea0d9503aab3175732977a2119962b9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 3 Nov 2022 18:18:46 -0700 Subject: use dotenv to pick up environment variables --- adenosine-cli/Cargo.toml | 1 + adenosine-cli/src/bin/adenosine.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'adenosine-cli') diff --git a/adenosine-cli/Cargo.toml b/adenosine-cli/Cargo.toml index 2d14447..9fa8fa7 100644 --- a/adenosine-cli/Cargo.toml +++ b/adenosine-cli/Cargo.toml @@ -22,6 +22,7 @@ serde_json = "*" base64 = "*" regex = "*" lazy_static = "*" +dotenv = "*" # uncertain about these... anyhow = "1.0" diff --git a/adenosine-cli/src/bin/adenosine.rs b/adenosine-cli/src/bin/adenosine.rs index 0b79cf9..931616b 100644 --- a/adenosine-cli/src/bin/adenosine.rs +++ b/adenosine-cli/src/bin/adenosine.rs @@ -208,6 +208,7 @@ enum Command { } fn main() -> Result<()> { + dotenv::dotenv().ok(); let opt = Opt::from_args(); let log_level = match opt.verbose { -- cgit v1.2.3