;tools: bake jargon - extract Hledger.hs haddock examples to a test journal

This commit is contained in:
Simon Michael 2023-11-04 11:59:43 -07:00
parent 96f52ee00c
commit 8a2a9643de

5
bake
View File

@ -180,6 +180,11 @@ dbgstrs() {
rg --sort path -t hs 'dbg.*?(".*")' -r '$1' -o
}
# Extract Hledger.hs examples to jargon.j.
jargon() {
rg '^ *> (.*)' -or '$1' hledger-lib/Hledger.hs > jargon.j
}
if declare -f "$1" > /dev/null; then "$@"; else usage; fi
# ** notes