resume.toml/justfile

31 lines
467 B
Plaintext
Raw Normal View History

2023-12-06 05:51:32 +00:00
# show all recipes
default:
just --list --unsorted
# convert to json
json:
taplo get -f resume.toml -o json
# format toml
fmt:
taplo fmt resume.toml
# validate toml
validate:
taplo lint resume.toml
# make groff
groff:
just json | mustache - resume.template
# make pdf
pdf:
just groff | groff -ms -t -Tpdf > resume.pdf
# example
example:
taplo get -f example.toml -o json \
| mustache - resume.template \
| groff -ms -t -Tpdf \
> example.pdf