2026-02-02 07:19:22 +01:00
|
|
|
pub mod binary;
|
|
|
|
|
mod deployer;
|
|
|
|
|
pub mod env;
|
2026-01-19 08:34:17 +01:00
|
|
|
mod manual;
|
|
|
|
|
mod node_control;
|
2026-02-02 07:19:22 +01:00
|
|
|
pub mod process;
|
2025-12-01 12:48:39 +01:00
|
|
|
|
2026-02-02 07:19:22 +01:00
|
|
|
pub use binary::{BinaryConfig, BinaryResolver};
|
|
|
|
|
pub use deployer::{ProcessDeployer, ProcessDeployerError};
|
|
|
|
|
pub use env::{BuiltNodeConfig, LocalDeployerEnv, NodeConfigEntry};
|
|
|
|
|
pub use manual::{ManualCluster, ManualClusterError};
|
|
|
|
|
pub use node_control::{NodeManager, NodeManagerError, NodeManagerSeed};
|
|
|
|
|
pub use process::{
|
|
|
|
|
LaunchEnvVar, LaunchFile, LaunchSpec, NodeEndpointPort, NodeEndpoints, ProcessNode,
|
|
|
|
|
ProcessSpawnError,
|
|
|
|
|
};
|
2026-02-17 10:28:50 +01:00
|
|
|
|
|
|
|
|
const KEEP_LOGS_ENV: &str = "TF_KEEP_LOGS";
|
|
|
|
|
|
|
|
|
|
pub(crate) fn keep_tempdir_from_env() -> bool {
|
|
|
|
|
env_enabled(KEEP_LOGS_ENV)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn env_enabled(key: &str) -> bool {
|
|
|
|
|
std::env::var(key).ok().is_some_and(|value| {
|
|
|
|
|
value == "1" || value.eq_ignore_ascii_case("true") || value.eq_ignore_ascii_case("yes")
|
|
|
|
|
})
|
|
|
|
|
}
|