gamelog/justfile

39 lines
946 B
Plaintext
Raw Normal View History

2021-12-23 21:52:43 +00:00
# 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
2022-02-11 04:26:27 +00:00
# create a new entry
2021-12-23 21:52:43 +00:00
new:
node bin/cli.js
2022-01-06 23:43:11 +00:00
2022-02-11 04:26:27 +00:00
# html
html:
2022-01-06 23:43:11 +00:00
recsel games.rec | recfmt -f games.templ | pandoc -t html | lynx -stdin
2022-02-11 04:26:27 +00:00
# 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