Skip to main content

Module machine

Module machine 

Source
Expand description

ralph machine CLI facade.

Purpose:

  • Provide the stable machine-command entrypoint for main.rs, tests, and the macOS app.

Responsibilities:

  • Re-export the machine-facing Clap surface consumed by the macOS app.
  • Keep routing and JSON/document helpers in focused companion modules.
  • Re-export queue/task machine documents from their companion builders.

Scope:

  • Facade and re-exports only.
  • Does not own queue/task/run business logic.
  • Does not define machine contract types.

Usage:

  • Import crate::cli::machine::* or call handle_machine from CLI entrypoints.
  • The queue continuation document builders live in queue_docs.rs and are re-exported here.

Invariants/assumptions:

  • Machine responses remain versioned and deterministic.
  • This facade stays thin as machine sub-surfaces evolve.

Structs§

MachineArgs
MachineConfigArgs
MachineDashboardArgs
MachineDoctorArgs
MachineQueueArgs
MachineQueueRepairArgs
MachineQueueUndoArgs
MachineRunArgs
MachineRunLoopArgs
MachineRunOneArgs
MachineSystemArgs
MachineTaskArgs
MachineTaskCreateArgs
MachineTaskDecomposeArgs
MachineTaskMutateArgs

Enums§

MachineCommand
MachineConfigCommand
MachineDoctorCommand
MachineQueueCommand
MachineRunCommand
MachineSystemCommand
MachineTaskCommand

Functions§

handle_machine
print_machine_error