Skip to main content

Module cli

Module cli 

Source
Expand description

Ralph CLI surface (Clap types) and shared CLI helpers.

Responsibilities:

  • Centralize the top-level Cli and Command definitions 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 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.
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 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