summaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
Diffstat (limited to 'report')
-rwxr-xr-xreport19
1 files changed, 19 insertions, 0 deletions
diff --git a/report b/report
new file mode 100755
index 00000000..c7c6187a
--- /dev/null
+++ b/report
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+binary=./ledger
+ledger=ledger.dat
+
+line="$binary -f $ledger"
+
+command=$1
+shift
+
+case "$command" in
+ balance) $line "$@" balance bank checking mastercard cash ;;
+ worth) $line "$@" balance assets liabilities ;;
+ profit) $line "$@" balance income expense ;;
+ spending) $line "$@" balance -n food movies gas tips \
+ health supplies -insurance -vacation ;;
+ huquq) $line "$@" balance ^huquq ;;
+ gold) $line "$@" balance -G $1 ^huquq ;;
+esac