Skip to content

Commit

Permalink
scaffold: Load env file
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Dec 1, 2023
1 parent 3a2e832 commit 6f64029
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
scripts/new.rs
todo.txt
.env
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scaffold/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ chrono = "0.4.31"
clap = { version = "4.4.8", features = ["derive"] }
colored = "2.0.4"
common = { path = "../common" }
dotenv = "0.15.0"
globalenv = "0.4.2"
humantime = "2.1.0"
once_cell = "1.18.0"
Expand Down
1 change: 1 addition & 0 deletions scaffold/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod session;
const TOKEN_VAR: &str = "AOC_TOKEN";

fn main() -> Result<()> {
dotenv::dotenv()?;
let args = Args::parse();

let session = match &args.token {
Expand Down

0 comments on commit 6f64029

Please sign in to comment.