Skip to main content

Module cli

Module cli 

Source
Expand description

Ralph CLI facade.

Responsibilities:

  • Expose the top-level Clap surface for the ralph binary.
  • Re-export shared CLI helpers used across subcommand modules.
  • Keep the root CLI module thin and navigation-friendly.

Not handled here:

  • Command execution logic beyond delegated helper entrypoints.
  • Queue persistence or runner execution internals.
  • Large parse-regression suites beyond delegated test modules.

Invariants/assumptions:

  • Top-level clap types remain stable re-exports for the rest of the crate.
  • Shared queue/list helper behavior stays centralized in helpers.rs.

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 context command: Clap types and handler.
daemon
ralph daemon ... command group for background service management.
doctor
ralph doctor command: handler.
init
ralph init command: Clap types and handler.
machine
ralph machine CLI facade.
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 ... CLI facade.
queue
ralph queue ... command group: Clap types and handler facade.
run
ralph run ... facade.
runner
CLI arguments for runner management commands.
scan
ralph scan command: Clap types and handler.
task
ralph task ... command group: Clap types and handler facade.
tutorial
ralph tutorial command: Clap types and handler.
undo
CLI handler for ralph undo command.
version
Version command for Ralph CLI.
watch
ralph watch command: Clap types and handler.
webhook
Webhook CLI commands.

Structs§

Cli
CliSpecArgs

Enums§

CliSpecFormatArg
Command

Functions§

handle_cli_spec
handle_help_all