# show all commands
default:
  just -l --unsorted

# how many games played
played:
  recsel -e "Role = 'Player'" -P Module games.rec

# how many games ran
ran:
  recsel -e "Role = 'DM'" -P Module games.rec

# ongoing
ongoing:
  recsel -e 'Status = "Ongoing"' -p System,Module games.rec

# export csv
csv:
  rec2csv games.rec

# get some json
json:
  rec2csv games.rec | csvjson | jq

# create a new entry (WIP)
new:
  node bin/cli.js

# refcmt demo
template:
  recsel games.rec | recfmt -f games.templ | pandoc -t html | lynx -stdin