summaryrefslogtreecommitdiff
path: root/tithe
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-10-14 16:20:16 -0400
committerBen Sima <ben@bsima.me>2021-10-14 16:20:16 -0400
commit0aaa6c0439c6a04f8806bdfe9a26d7ba58415da0 (patch)
treefea5da7909704dab34ad1484158ee3156e1e71d3 /tithe
parent2a50c65dcb5657c0ebaa8a7145372fd699800dac (diff)
add tithe to hledger overview
Diffstat (limited to 'tithe')
-rwxr-xr-xtithe9
1 files changed, 9 insertions, 0 deletions
diff --git a/tithe b/tithe
new file mode 100755
index 0000000..2edf379
--- /dev/null
+++ b/tithe
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+args="li:me:church:tithe --auto --value=now,USD"
+
+case $1 in
+ "bal") hledger bal $args;;
+ "reg") hledger reg $args;;
+ *) hledger bal $args --output-format=json | jq '.[1][].aquantity.floatingPoint';;
+esac