seed cmd_duration_ms (#798)

* seed cmd_duration_ms

* tweak
This commit is contained in:
Darren Schroeder 2022-01-21 13:50:44 -06:00 committed by GitHub
parent 0651e2b31f
commit 2df37d6ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,15 @@ pub(crate) fn evaluate(ctrlc: Arc<AtomicBool>, engine_state: &mut EngineState) -
report_error(&working_set, &e); report_error(&working_set, &e);
} }
// seed the cmd_duration_ms env var
stack.add_env_var(
"CMD_DURATION_MS".into(),
Value::String {
val: "0823".to_string(),
span: Span { start: 0, end: 0 },
},
);
loop { loop {
let config = match stack.get_config() { let config = match stack.get_config() {
Ok(config) => config, Ok(config) => config,