From 293212c60ed3744f6613f23fea058f8ba73a6f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Thu, 4 May 2023 22:32:32 -0600 Subject: First attempt at storing ledger entries. Now we can store the entries in very simple ways and we can even print them! --- ledger.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ledger.py') diff --git a/ledger.py b/ledger.py index 61eb6a5..a224591 100755 --- a/ledger.py +++ b/ledger.py @@ -1,11 +1,18 @@ #!/usr/bin/env python3 from utils.args import get_arguments, test_args +from utils.read_file import read_ledger def main(): args = get_arguments() test_args(args) - print(args) + if args.files: + for file in args.files: + result = read_ledger(file) + + if args.verb == 'print': + for ent in result: + print(ent) if __name__ == '__main__': -- cgit v1.2.3