From 94e50c3e9dfb4e7c25005f9ec2bcf74de4f4da65 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Thu, 31 Oct 2024 15:41:32 +0000 Subject: [PATCH] feat: est basic CLI architecture --- src/cli.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/cli.py b/src/cli.py index b428b11..facb7aa 100644 --- a/src/cli.py +++ b/src/cli.py @@ -1,4 +1,11 @@ import argparse +import importlib + +from controllers.controller import Controller + +importlib.invalidate_caches() + +file_path = "/home/thomas/repos/eolas-db/dev-data/Turing_completeness.md" def main(): @@ -6,13 +13,13 @@ def main(): prog="eolas-db", description="Eolas database manager." ) parser.add_argument("command", choices=["parse"], help="Command to execute") - parser.add_argument("--path", help="Path to Zettelkasten directory") args = parser.parse_args() - print("Welcome to eolas-db") + controller = Controller() if args.command == "parse": - pass + parsed_entry = controller.parse_entry(file_path) + print(parsed_entry) if __name__ == "__main__":