From 4b2d8bcd3491ca2bb51f85e7923e2f4c79333432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Sun, 7 May 2023 17:49:43 -0600 Subject: First attempt at balance!! The output still needs colors, but it's functional. :D --- ledger.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ledger.py') 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() -- cgit v1.2.3