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
presentation. - start_
scan_ library - POST
scan_librarywith optional task kwargs (e.g.{"platform_slugs":["gba"]}). - wait_
for_ scan_ task - CLI: poll task status with an
indicatifspinner when text mode allows progress. - 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).