diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-07 17:49:43 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-07 17:49:43 -0600 |
commit | 4b2d8bcd3491ca2bb51f85e7923e2f4c79333432 (patch) | |
tree | b89174a0069c348fcd6b579e9098a4e08bb3b031 /ledger.py | |
parent | 2dcabff113476a18dadf1e281c013115902c2059 (diff) | |
download | Ledger.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 '')
-rwxr-xr-x | ledger.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() |