aboutsummaryrefslogtreecommitdiff
path: root/ledger.py
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-07 17:49:43 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-07 17:49:43 -0600
commit4b2d8bcd3491ca2bb51f85e7923e2f4c79333432 (patch)
treeb89174a0069c348fcd6b579e9098a4e08bb3b031 /ledger.py
parent2dcabff113476a18dadf1e281c013115902c2059 (diff)
downloadLedger.py-4b2d8bcd3491ca2bb51f85e7923e2f4c79333432.tar.gz
Ledger.py-4b2d8bcd3491ca2bb51f85e7923e2f4c79333432.zip
First attempt at balance!!
The output still needs colors, but it's functional. :D
Diffstat (limited to 'ledger.py')
-rwxr-xr-xledger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ledger.py b/ledger.py
index 0e1e166..a418e65 100755
--- a/ledger.py
+++ b/ledger.py
@@ -3,6 +3,7 @@ from utils.args import get_arguments, test_args
from utils.read_file import read_ledger
from utils.register import print_register
from utils.sort import sort_entries
+from utils.balance import print_balance
def main():
args = get_arguments()
@@ -23,6 +24,9 @@ def main():
elif args.verb in ['register', 'reg', 'r']:
print_register(result)
+ elif args.verb in ['balance', 'bal', 'b']:
+ print_balance(result)
+
if __name__ == '__main__':
main()