;tools: bake jargon - extract Hledger.hs haddock examples to a test journal
This commit is contained in:
parent
96f52ee00c
commit
8a2a9643de
5
bake
5
bake
@ -180,6 +180,11 @@ dbgstrs() {
|
|||||||
rg --sort path -t hs 'dbg.*?(".*")' -r '$1' -o
|
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
|
if declare -f "$1" > /dev/null; then "$@"; else usage; fi
|
||||||
|
|
||||||
# ** notes
|
# ** notes
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user