hledger/bin
2020-06-28 10:00:36 -07:00
..
_hledger-chart.hs code: Strip extraneous trailing whitespace from Haskell sources 2019-07-15 16:40:49 +01:00
.gitignore prices: new addon (#486) 2017-01-25 11:50:54 -08:00
aliases.sh move add-ons and scripts to bin/ 2017-01-08 07:28:23 -08:00
budget-rewrite.sh bin: add budget-rewrite.sh example 2017-01-08 07:28:23 -08:00
compile.sh bin: stop listing addons after compiling them 2017-11-01 08:05:17 -07:00
csv.mk doc: move last addon docs out of hledger manual; add hledger-iadd 2017-01-24 15:39:38 -08:00
hledger-balance-as-budget.hs cli: ability to pass arguments to getHledgerCliOpts + two example scripts 2020-05-27 04:58:57 -07:00
hledger-check-tag-files2.hs ;bin: hledger-check-tag-files: fix comments 2020-03-27 17:22:56 -07:00
hledger-check-tag-files.hs ;bin: hledger-check-tag-files: fix comments 2020-03-27 17:22:56 -07:00
hledger-check.hs bin: hledger-check: use stack script command 2020-06-28 09:35:05 -07:00
hledger-combine-balances.hs cli: ability to pass arguments to getHledgerCliOpts + two example scripts 2020-05-27 04:58:57 -07:00
hledger-smooth.hs ;bin: smooth: link to #1171 2020-01-23 12:53:43 -08:00
hledger-swap-dates.hs ;lib: clean out showTransactionUnelided 2019-11-16 12:53:07 +01:00
README.md ;bin: better script install instructions 2020-06-28 10:00:36 -07:00

Miscellaneous hledger add-ons, bash scripts, example make rules, etc.

The hledger-*.hs scripts here are example/experimental hledger add-on commands, including:

  • hledger-check.hs - check more complex account balance assertions
  • hledger-smooth.hs - an attempt at automatically splitting infrequent/irregular transactions
  • hledger-swap-dates.hs - print transactions with their date and date2 fields swapped
  • hledger-combine-balances.hs - render two balance reports as single multi-column one
  • hledger-balance-as-budget.hs - use one balance report as the budget for the other one

Note these are not tested as much as the rest of hledger, and some of them may be only proof of concepts.

They are easiest to run reliably if you have stack in your $PATH; they will install required dependencies and compile themselves as needed. (You can also run them with cabal or runghc, or compile them with ghc, if you take care of the dependencies.)

Installing a single script

$ curl -sO https://raw.githubusercontent.com/simonmichael/hledger/master/bin/hledger-check.hs
$ chmod +x hledger-check.hs
$ ./hledger-check.hs --help

If you put the script somewhere in your $PATH, it will also show up as a hledger command, so this also works:

$ hledger check -- --help

Note the --, which is required to separate script options from hledger options:

$ hledger [HLEDGEROPTS] ADDONCMD [-- ADDONOPTS]

Installing all scripts

$ git clone https://github.com/simonmichael/hledger
$ # add hledger/bin/ to your $PATH
$ hledger  # addons appear in command list