1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! # romm-cli
//!
//! `romm-cli` is a powerful command-line interface and terminal user interface (TUI)
//! for interacting with the [RomM](https://github.com/romm-apps/romm) API.
//!
//! It provides tools for:
//! - Browsing and searching your ROM collection.
//! - Downloading ROMs and game saves.
//! - Uploading new ROMs and saves.
//! - Managing server-side tasks (library scans, etc.).
//! - Securely managing authentication via the OS keyring.
//!
//! ## Quick Start
//!
//! Most users will interact with the crate through the `romm-cli` binary.
//! For library consumers, the core entry point is the [`client::RommClient`].
//!
//! ```no_run
//! use romm_cli::config::load_config;
//! use romm_cli::client::RommClient;
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let config = load_config()?;
//! let client = RommClient::new(&config, false)?;
//!
//! let version = client.rom_server_version_from_heartbeat().await;
//! println!("Connected to RomM server version: {:?}", version);
//!
//! Ok(())
//! }
//! ```
/// HTTP client implementation for the RomM API.
/// CLI command handlers.
/// Configuration and authentication management.
/// Internal core logic and shared utilities.
/// Type-safe API endpoint definitions.
/// Feature compatibility helpers based on OpenAPI endpoint availability.
/// Frontend-specific logic (shared between CLI and TUI).
/// OpenAPI parsing and endpoint lookup helpers.
/// TUI implementation (requires the `tui` feature).
/// Shared data models and types.
/// Auto-update logic.