argh/node.py

22 lines
436 B
Python
Raw Normal View History

2025-09-27 07:36:55 +02:00
#!/usr/bin/env python3
2025-09-27 07:51:50 +02:00
# Copyright (c) 2025 Julian Müller (ChaoticByte)
2025-09-27 07:36:55 +02:00
import asyncio
from argparse import ArgumentParser
from pathlib import Path
2025-09-27 07:51:50 +02:00
from argh.node import node_from_yml
2025-09-27 07:36:55 +02:00
if __name__ == "__main__":
argp = ArgumentParser()
argp.add_argument("config", type=Path, help="Path to the config yaml file")
args = argp.parse_args()
node = node_from_yml(args.config.read_text())
asyncio.run(node.run())