consciousness/poc-memory/src/cli/mod.rs

19 lines
428 B
Rust
Raw Normal View History

// cli/ — command-line interface handlers
//
// Split from main.rs for readability. Each module handles a group
// of related subcommands.
pub mod graph;
pub mod node;
pub mod agent;
pub mod admin;
pub mod journal;
pub mod misc;
/// Exit silently if POC_MEMORY_DRY_RUN=1.
pub fn check_dry_run() {
if std::env::var("POC_MEMORY_DRY_RUN").map_or(false, |v| v == "1" || v == "true") {
std::process::exit(0);
}
}