Skip to main content

Crate romm_cli

Crate romm_cli 

Source
Expand description

§romm-cli

Command-line interface for the RomM API. Re-exports romm_api for library consumers that depend on the romm-cli crate.

Modules§

cli_presentation
CLI output presentation (color, progress, JSON vs text). CLI output presentation: color, progress, and JSON vs text stdout rules.
client
HTTP client implementation for the RomM API. HTTP client wrapper around the ROMM API.
commands
CLI command handlers. Top-level CLI command handling.
config
Configuration and authentication management. Configuration and authentication for the ROMM client.
core
Internal core logic and shared utilities. Core application logic and shared utilities.
endpoints
Type-safe API endpoint definitions.
error
Typed error hierarchy (ApiError, ConfigError, DownloadError, RommError). Typed error hierarchy for the romm-cli library.
exit
Process exit codes for scripting (see README “Exit codes”).
feature_compat
Feature compatibility helpers based on OpenAPI endpoint availability.
frontend
CLI frontend routing. Frontend routing helpers.
log_redact
Redaction helpers for tracing output (no secrets in logs). Redaction helpers for tracing and debug output (Gap 6: secrets never in logs).
openapi
OpenAPI parsing and endpoint lookup helpers. Parse a subset of OpenAPI 3.x JSON into a flat endpoint list.
types
Shared data models and types.
update
Frontend-aware wrappers around romm_api::update for the CLI binary.