Skip to content

Conversation

@skypher
Copy link
Contributor

@skypher skypher commented Nov 29, 2025

Summary

Add a simple Python CLI wrapper (gamelist_cli.py) that:

  • Runs the devilutionx-gamelist binary
  • Waits for results (configurable timeout, default 25s)
  • Outputs human-readable format or raw JSON
  • Cleans up automatically on exit
  • Provides helpful error messages and documentation

Usage

# Basic usage
./gamelist_cli.py

# Example output:
# Found 1 game(s):
#
# XRUAR: Hellfire 1.5.5 Fastest Normal (RiT, Theo, Cow) - Alexandria

# Verbose (show IPv6 addresses and binary output on timeout)
./gamelist_cli.py -v

# Output raw JSON
./gamelist_cli.py -j

# Custom timeout
./gamelist_cli.py -t 40

Test plan

  • mypy passes
  • Manual testing with live games

Simple Python wrapper that:
- Runs devilutionx-gamelist binary
- Waits for results (configurable timeout)
- Outputs human-readable format or JSON
- Cleans up automatically

Usage: ./gamelist_cli.py [-t TIMEOUT] [-v] [-j]
@skypher
Copy link
Contributor Author

skypher commented Nov 29, 2025

mypy CI fix here: #60

@AJenbo
Copy link
Member

AJenbo commented Nov 29, 2025

It's fine to include multiple changes in a PR by splitting them up in commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants