Expand description
Shared scan_library task trigger and optional wait (used by roms upload and scan).
Structs§
- Scan
Library Options - Options for starting a library scan and optionally blocking until it finishes.
- Scan
Library Start
Enums§
- Scan
Cache Invalidate - After a successful
--wait, optionally drop stale entries from the on-disk ROM list cache.
Constants§
Functions§
- run_
scan_ library_ flow - Start a library scan; optionally wait. Prints human text or JSON per
format. - start_
scan_ library - POST
scan_librarywith no kwargs (RomM task accepts noplatform_id; see docs). - wait_
for_ scan_ task - CLI: poll task status with an
indicatifspinner (do not use under the TUI alternate screen). - wait_
for_ task_ terminal - Poll
GET /api/tasks/{task_id}every 2 seconds until terminal state or timeout.on_statusis invoked with each non-terminal status string (may be empty on parse miss). On success returns the last status JSON (typicallystatus==finished).