Skip to content

Commit

Permalink
;tools: bake jargon - extract Hledger.hs haddock examples to a test j…
Browse files Browse the repository at this point in the history
…ournal
  • Loading branch information
simonmichael committed Nov 8, 2023
1 parent 3c8a192 commit d0e46ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0e46ab

Please sign in to comment.