summaryrefslogtreecommitdiff
path: root/bin/rtt-show-game
blob: ece9e4944ef53bcc28cc938d0caaec4cbd4c2c9e (plain)
1
2
3
4
5
6
7
#!/bin/bash
if [ -n "$1" ]
then
	sqlite3 db "select json_remove(json_remove(state, '$.undo'), '$.log') from game_state where game_id = $1"
else
	echo "usage: rtt-show-state GAME"
fi