ralph_workflow/cli/
mod.rs

1//! CLI argument parsing and command-line interface definitions.
2//!
3//! This module contains all CLI-related types and functions:
4//! - [`Args`] struct with clap configuration for command-line argument parsing
5//! - `Preset` enum for preset agent configurations
6//! - CLI handler functions for `--list-agents`, `--list-providers`, `--diagnose`
7//! - Config initialization handlers for `--init`, `--init-global`, `--init-legacy`
8//! - Interactive template selection for PROMPT.md creation
9//!
10//! # Module Structure
11//!
12//! - [`args`] - Args struct with clap configuration
13//! - [`presets`] - Preset enum and `apply_args_to_config`
14//! - [`providers`] - Provider listing and info display
15//! - [`handlers`] - Command handlers (list-agents, diagnose, dry-run, template-selection)
16//! - [`init`] - Config initialization handlers (--init, --init-global, --init-legacy)
17
18mod args;
19mod handlers;
20mod init;
21pub mod presets;
22mod providers;
23
24// Re-export all public items for backward compatibility
25pub use args::Args;
26pub use handlers::{
27    create_prompt_from_template, handle_diagnose, handle_dry_run, handle_list_agents,
28    handle_list_available_agents, handle_template_commands, prompt_template_selection,
29};
30pub use init::{handle_init_global, handle_init_legacy, handle_init_prompt, handle_list_templates};
31pub use presets::apply_args_to_config;
32pub use providers::handle_list_providers;