diff options
author | Rasmus Luha <rasmus.luha@ut.ee> | 2025-04-05 01:03:31 +0300 |
---|---|---|
committer | Rasmus Luha <rasmus.luha@ut.ee> | 2025-04-05 01:03:31 +0300 |
commit | 488f00e56f8f5f6c5b7b3968ed9d95dd6e8edcb6 (patch) | |
tree | 13b63b3001db9c0c7fdc95dd5095e0032881f7b8 /main.py |
init commit
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +from modules.nifi import core as nifi +from modules.telegraf import core as telegraf + +AVAILABLE_PLATFORMS = { + "1": ("Nifi", nifi), + "2": ("Telegraf", telegraf)} + + +def list_platforms(): + print("Available platforms:") + for key, (name, _) in AVAILABLE_PLATFORMS.items(): + print(f"{key}. {name}") + + +def main(): + list_platforms() + plat_choice = input("Palun vali platform (number): ").strip() + + platform = AVAILABLE_PLATFORMS.get(plat_choice) + if not platform: + print("Ebaõnnestunud valik ...") + return + + name, module = platform + module.introduction() + module.build_pipeline() + + +if __name__ == "__main__": + main() |