Expand description
CLI argument parsing and command-line interface definitions.
This module contains all CLI-related types and functions:
Argsstruct with clap configuration for command-line argument parsingPresetenum for preset agent configurations- CLI handler functions for
--list-agents,--list-providers,--diagnose - Config initialization handlers for
--init,--init-global - Interactive template selection for PROMPT.md creation
§Module Structure
args- Args struct with clap configurationpresets- Preset enum andapply_args_to_configproviders- Provider listing and info displayhandlers- Command handlers (list-agents, diagnose, dry-run, template-selection)init- Config initialization handlers (–init, –init-global)
Re-exports§
pub use handlers::create_prompt_from_template;pub use handlers::handle_diagnose;pub use handlers::handle_dry_run;pub use handlers::handle_list_agents;pub use handlers::handle_list_available_agents;pub use handlers::handle_show_baseline;pub use handlers::handle_template_commands;pub use handlers::prompt_template_selection;pub use presets::apply_args_to_config;
Modules§
- handlers
- CLI command handlers.
- presets
- Preset configurations for common agent combinations.
- reducer
- CLI argument reducer module.
Structs§
- Args
- Ralph: PROMPT-driven agent orchestrator for git repos
Enums§
- Pause
OnExit Mode - Controls whether Ralph pauses for input before process exit.
Functions§
- handle_
check_ config - Handle the
--check-configflag using the default environment. - handle_
check_ config_ with - Handle the
--check-configflag with a custom environment. - handle_
extended_ help - Handle the
--extended-help/--manflag. - handle_
generate_ completion - Handle the
--generate-completionflag. - handle_
init_ global - Handle the
--init-globalflag using the default path resolver. - handle_
init_ global_ with - Handle the
--init-globalflag with a custom path resolver. - handle_
init_ local_ config - Handle the
--init-local-configflag using the default path resolver. - handle_
init_ local_ config_ with - Handle the
--init-local-configflag with a custom path resolver. - handle_
list_ providers - Handle –list-providers command.
- handle_
list_ work_ guides - Handle the
--list-work-guides(or--list-templates) flag. - handle_
smart_ init - Handle the smart
--initflag using the default path resolver. - handle_
smart_ init_ with - Handle the smart
--initflag with a custom path resolver.