tarot/justfile
2023-10-12 07:44:50 -06:00

21 lines
361 B
Makefile

# show all commands
default:
just --list --unsorted
# draw n cards
@draw n:
recsel -P name,ascii,meaning_up -m {{n}} tarot.rec \
| fold -sw 60
# show a cutup
@cutup:
recsel -P desc tarot.rec \
| fold -sw 30 \
| sed '/^$/d' \
| shuf \
| head -n 5
# example: group by type
type:
recsel -G type -p "type:TYPE,name,Count(name):TOTAL" tarot.rec