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