;examples: debconf: reports

This commit is contained in:
Simon Michael 2026-01-09 14:54:25 -10:00
parent 1ba12c5396
commit 343f957cad
2 changed files with 30 additions and 1 deletions

View File

@ -19,10 +19,26 @@ dc%:
git -C $@ sparse-checkout set --no-cone budget '!budget/invoices' git -C $@ sparse-checkout set --no-cone budget '!budget/invoices'
git -C $@ apply --allow-empty ../patches/$@.patch git -C $@ apply --allow-empty ../patches/$@.patch
# make check-ledger, check-hledger - check readability of all years # make check-ledger, check-hledger - check readability of all years (main journal)
check-%: check-%:
@for d in dc*; do printf "$$d: "; $* -f $$d/budget/journal.ledger stats >/dev/null && echo ok; done @for d in dc*; do printf "$$d: "; $* -f $$d/budget/journal.ledger stats >/dev/null && echo ok; done
# make hledger-'ARGS' - run a hledger command on all years (main journal)
hledger-%:
@for d in dc*; do printf "\n$$d:\n"; hledger -f $$d/budget/journal.ledger $*; done
stats:
@make -s hledger-stats
accounts:
@make -s hledger-accounts
is:
@make -s hledger-'is -2'
bs:
@make -s hledger-'bs -2'
# maintenance # maintenance

View File

@ -10,3 +10,16 @@ Or to clone all years, starting 2017: `make all`
Some patches for hledger readability will be applied; those might need updating from time to time.\ Some patches for hledger readability will be applied; those might need updating from time to time.\
To check hledger readability: `make check-hledger`\ To check hledger readability: `make check-hledger`\
To check ledger readability: `make check-ledger` To check ledger readability: `make check-ledger`
To run some basic reports in all years:
- `make is`
- `make bs`
- `make accounts`
- `make stats | grep 'Txns '`
To run an any hledger report in all years: `make hledger-'ARGS'`\
Eg:
- `make hledger-'activity -W'`
- `make hledger-'is -tYT --layout=bare'`