Skip to main content

ralph/cli/
mod.rs

1//! Ralph CLI facade.
2//!
3//! Responsibilities:
4//! - Expose the top-level Clap surface for the `ralph` binary.
5//! - Re-export shared CLI helpers used across subcommand modules.
6//! - Keep the root CLI module thin and navigation-friendly.
7//!
8//! Not handled here:
9//! - Command execution logic beyond delegated helper entrypoints.
10//! - Queue persistence or runner execution internals.
11//! - Large parse-regression suites beyond delegated test modules.
12//!
13//! Invariants/assumptions:
14//! - Top-level clap types remain stable re-exports for the rest of the crate.
15//! - Shared queue/list helper behavior stays centralized in `helpers.rs`.
16
17mod args;
18mod helpers;
19
20pub mod app;
21pub mod cleanup;
22pub mod color;
23pub mod completions;
24pub mod config;
25pub mod context;
26pub mod daemon;
27pub mod doctor;
28pub mod init;
29pub mod machine;
30pub mod migrate;
31pub mod plugin;
32pub mod prd;
33pub mod productivity;
34pub mod prompt;
35pub mod queue;
36pub mod run;
37pub mod runner;
38pub mod scan;
39pub mod task;
40pub mod tutorial;
41pub mod undo;
42pub mod version;
43pub mod watch;
44pub mod webhook;
45
46pub use args::{Cli, CliSpecArgs, CliSpecFormatArg, Command};
47pub use color::ColorArg;
48pub use helpers::{handle_cli_spec, handle_help_all};
49pub(crate) use helpers::{load_and_validate_queues_read_only, resolve_list_limit};
50
51#[cfg(test)]
52mod tests;