gamelog/justfile

39 lines
946 B
Plaintext

# 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
new:
node bin/cli.js
# html
html:
recsel games.rec | recfmt -f games.templ | pandoc -t html | lynx -stdin
# rss feed
feed:
echo "<rss version=\"2.0\"><channel><title>gamelog</title>" > feed.xml
echo "<link>https://git.tilde.town/dozens/gamelog</link><description>all the games i play</description><atom:link rel=\"self\" type=\"application/rss+xml\" href=\"https://git.tilde.town/dozens/gamelog/raw/branch/master/feed.xml\"/>" >> feed.xml
recsel games.rec | recfmt -f feed.templ >> feed.xml
echo '</channel></rss>' >> feed.xml