thot_core/runner/common.rs
1//! Common functionality related to the Thot runner.
2use super::env::ThotEnv;
3use std::env;
4
5/// Returns whether the script is being run in developement mode.
6pub fn dev_mode() -> bool {
7 // return true if a container id is not set
8 env::var(ThotEnv::container_id_key()).is_err()
9}
10
11#[cfg(test)]
12#[path = "./common_test.rs"]
13mod common_test;