No more subcrate nesting — src/, agents/, schema/, defaults/, build.rs all live at the workspace root. poc-daemon remains as the only workspace member. Crate name (poc-memory) and all imports unchanged. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
18 lines
424 B
Rust
18 lines
424 B
Rust
// 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").is_ok_and(|v| v == "1" || v == "true") {
|
|
std::process::exit(0);
|
|
}
|
|
}
|