aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2022-02-15 21:17:00 +0000
committerGuillaume Pasquet <dev@etenil.net>2022-02-15 21:17:00 +0000
commit60f721b94ae70533a4a6ee9ffa7d24e5a19abff5 (patch)
treea057cd3a3a2f6a7ed0c650cc8b5914777164acde /src/main.rs
parent15e40bf3d028b383afbf7251910a121807e0d1b1 (diff)
Add unit tests for Context
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 67c6541..db517d1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,7 +4,7 @@ mod executor;
use jsonformat::{format_json, Indentation};
use barbfile::BarbFile;
-use executor::Executor;
+use executor::{Context, Executor};
use clap::Parser;
@@ -47,7 +47,7 @@ impl Args {
fn main() {
let args = Args::parse();
- let mut executor = Executor::new();
+ let mut executor = Executor::new(Context::new(env::vars()));
let bfile = BarbFile::from_str(
fs::read_to_string("test.barb")
.expect("Failed to read file")