diff options
Diffstat (limited to 'bin/rtt-show-game')
-rwxr-xr-x | bin/rtt-show-game | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/rtt-show-game b/bin/rtt-show-game new file mode 100755 index 0000000..ece9e49 --- /dev/null +++ b/bin/rtt-show-game @@ -0,0 +1,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 |