planet-wars/client/start.sh
2020-03-30 11:32:26 +02:00

4 lines
214 B
Bash
Executable file

#!/bin/bash
curl -X POST -H "Content-Type: application/json" -d @game_start.json ${HOST:-localhost:8000}/lobby | \
python3 -c "import sys, json; print('\n'.join(str(x) for x in json.load(sys.stdin)['players']))"