resume.toml/justfile

28 lines
386 B
Plaintext

# show all recipes
default:
just --list --unsorted
# format toml
fmt:
taplo fmt resume.toml
# validate toml
validate:
taplo lint resume.toml
# create pdf
pdf:
#!/usr/bin/env sh
ed<<EOF
i
module.exports =
.
r !taplo get -f example.toml -o json
-1s/$/,
.r lambdas.js
w view.js
q
EOF
mustache view.js resume.template \
| groff -ms -t -Tpdf > example.pdf