Expand description
Ralph CLI surface (Clap types) and shared CLI helpers.
Responsibilities:
- Centralize the top-level
CliandCommanddefinitions for Clap. - Delegate command-group logic to submodules (queue/run/task/scan/etc.).
- Provide small shared CLI helpers used across command groups.
Not handled here:
- Command execution logic (see submodules).
- Queue persistence or lock management.
- Prompt rendering or runner execution.
Invariants/assumptions:
- Subcommands validate their own inputs and config dependencies.
- CLI parsing happens after argument normalization in
main.
Re-exports§
pub use color::ColorArg;
Modules§
- app
ralph app ...command group for macOS GUI integration.- cleanup
- Cleanup command CLI arguments.
- color
- Color option handling for CLI.
- completions
- Shell completion script generation for Ralph CLI.
- config
ralph config ...command group: Clap types and handler.- context
ralph contextcommand: Clap types and handler.- daemon
ralph daemon ...command group for background service management.- doctor
ralph doctorcommand: handler.- init
ralph initcommand: Clap types and handler.- migrate
- Migration CLI command for checking and applying config/file migrations.
- plugin
- Plugin CLI surface.
- prd
ralph prd ...command group: Clap types and handler.- productivity
- Productivity CLI commands.
- prompt
ralph prompt ...command group: Clap types and handler.- queue
ralph queue ...command group: Clap types and handler facade.- run
ralph run ...command group: Clap types and handler.- runner
- CLI arguments for runner management commands.
- scan
ralph scancommand: Clap types and handler.- task
ralph task ...command group: Clap types and handler facade.- tutorial
ralph tutorialcommand: Clap types and handler.- undo
- CLI handler for
ralph undocommand. - version
- Version command for Ralph CLI.
- watch
ralph watchcommand: Clap types and handler.- webhook
- Webhook CLI commands.