Skip to main content

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 completions;
20mod handlers;
21mod init;
22pub mod presets;
23mod providers;
24pub mod reducer;
25
26// Re-export all public items for backward compatibility
27pub use args::Args;
28pub use completions::handle_generate_completion;
29pub use handlers::{
30    create_prompt_from_template, handle_diagnose, handle_dry_run, handle_list_agents,
31    handle_list_available_agents, handle_show_baseline, handle_template_commands,
32    prompt_template_selection,
33};
34pub use init::{
35    handle_extended_help, handle_init_global, handle_init_global_with, handle_init_legacy,
36    handle_init_prompt, handle_init_prompt_with, handle_list_work_guides, handle_smart_init,
37    handle_smart_init_with,
38};
39pub use presets::apply_args_to_config;
40pub use providers::handle_list_providers;