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,--init-legacy - Interactive template selection for PROMPT.md creation
§Module Structure
- [
args] - Args struct with clap configuration presets- Preset enum andapply_args_to_config- [
providers] - Provider listing and info display - [
handlers] - Command handlers (list-agents, diagnose, dry-run, template-selection) - [
init] - Config initialization handlers (–init, –init-global, –init-legacy)
Re-exports§
pub use presets::apply_args_to_config;
Modules§
- presets
- Preset configurations for common agent combinations.
Structs§
- Args
- Ralph: PROMPT-driven agent orchestrator for git repos
Functions§
- create_
prompt_ from_ template - Create PROMPT.md from the selected template.
- handle_
diagnose - Handle –diagnose command.
- handle_
dry_ run - Handle –dry-run command.
- handle_
generate_ completion - Handle the
--generate-completionflag. - handle_
init_ global - Handle the
--init-globalflag. - handle_
init_ legacy - Handle the legacy
--init-legacyflag. - handle_
init_ prompt - Handle the
--init-promptflag. - handle_
list_ agents - Handle –list-agents command.
- handle_
list_ available_ agents - Handle –list-available-agents command.
- handle_
list_ providers - Handle –list-providers command.
- handle_
list_ templates - Handle the
--list-templatesflag. - handle_
smart_ init - Handle the smart
--initflag. - handle_
template_ commands - Handle all template commands.
- prompt_
template_ selection - Prompt the user to select a template when PROMPT.md is missing.