diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-04 22:32:32 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-04 22:32:32 -0600 |
commit | 293212c60ed3744f6613f23fea058f8ba73a6f62 (patch) | |
tree | 80b0fe14a11daa8d2a39bca1c04ba71da3830634 /ledger.py | |
parent | 93320ee7fdfc79695f0fddc66d7933121133fb3c (diff) | |
download | Ledger.py-293212c60ed3744f6613f23fea058f8ba73a6f62.tar.gz Ledger.py-293212c60ed3744f6613f23fea058f8ba73a6f62.zip |
First attempt at storing ledger entries.
Now we can store the entries in very simple ways and we can even print
them!
Diffstat (limited to '')
-rwxr-xr-x | ledger.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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__': |