tarot/justfile

21 lines
361 B
Plaintext
Raw Permalink Normal View History

2022-08-28 23:24:38 +00:00
# show all commands
default:
just --list --unsorted
# draw n cards
2023-10-02 17:17:01 +00:00
@draw n:
recsel -P name,ascii,meaning_up -m {{n}} tarot.rec \
| fold -sw 60
2022-08-28 23:24:38 +00:00
# show a cutup
2023-10-02 17:17:01 +00:00
@cutup:
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