gamelog/justfile

56 lines
928 B
Plaintext
Raw Permalink Normal View History

2022-02-11 22:08:17 +00:00
database := "db/games.rec"
2021-12-23 21:52:43 +00:00
# show all commands
default:
just -l --unsorted
# how many games played
2024-02-01 18:41:38 +00:00
@played:
recsel -t Game -e "Role = 'Player'" -P Module -C {{database}}
2021-12-23 21:52:43 +00:00
# how many games ran
2024-02-01 18:41:38 +00:00
@ran:
recsel -t Game -e "Role = 'DM'" -P Module -C {{database}}
2021-12-23 21:52:43 +00:00
# ongoing
2024-02-01 18:41:38 +00:00
@ongoing:
recsel -t Game -e 'Status = "Ongoing"' -p System,Module {{database}}
2021-12-23 21:52:43 +00:00
2022-08-30 13:17:56 +00:00
# show all in year
year x:
2024-02-01 18:41:38 +00:00
recsel -t Game -e 'Updated >> "{{x}}-01-01"' -P "Module,System,Updated" {{database}}
2021-12-23 21:52:43 +00:00
2024-02-01 22:57:46 +00:00
alias n := new
# create a new game
new: cli
alias u := update
# create a new game update
update: cli
# start cli
cli:
sh bin/cli.sh
2022-01-06 23:43:11 +00:00
2024-02-02 17:10:01 +00:00
# build da html
2022-02-11 04:26:27 +00:00
html:
2024-02-03 22:56:10 +00:00
sh bin/html.sh
2022-02-11 04:26:27 +00:00
# rss feed
feed:
2024-02-03 22:56:10 +00:00
sh bin/feed.sh
2022-02-11 22:08:17 +00:00
2022-02-17 00:45:28 +00:00
# copy to blog
export:
just html && cp dist/index.html ../dozens-and-dragons/out/gamelog/
2022-02-11 22:08:17 +00:00
# DO THE THANG
build: html feed
# upload
2022-02-17 00:45:28 +00:00
up: build export
2022-02-11 22:08:17 +00:00
rsync -azP --exclude=.git dist/* tilde:public_html/gamelog
2022-08-30 13:17:56 +00:00
# do everything
all: build up