tarot/justfile

16 lines
319 B
Plaintext
Raw Normal View History

2022-08-28 23:24:38 +00:00
# show all commands
default:
just --list --unsorted
# draw n cards
draw n:
recsel -P name,meaning_up -m {{n}} tarot.rec
# show a cutup
cutup:
2023-03-08 02:04:19 +00:00
recsel -P desc tarot.rec | fold -sw 30 | sed '/^$/d' | shuf | head -n 5
2022-08-28 23:24:38 +00:00
# example: group by type
type:
recsel -G type -p "type:TYPE,name,Count(name):TOTAL" tarot.rec