feat: scaffold meshnet monorepo
This commit is contained in:
3
packages/tracker/meshnet_tracker/__init__.py
Normal file
3
packages/tracker/meshnet_tracker/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""meshnet_tracker — Distributed Inference Network node registry and route selection."""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
32
packages/tracker/meshnet_tracker/cli.py
Normal file
32
packages/tracker/meshnet_tracker/cli.py
Normal file
@@ -0,0 +1,32 @@
|
||||
"""meshnet-tracker CLI entry point."""
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="meshnet-tracker",
|
||||
description="Distributed Inference Network node registry and route selection",
|
||||
)
|
||||
subparsers = parser.add_subparsers(dest="command")
|
||||
|
||||
start_cmd = subparsers.add_parser("start", help="Start the tracker server")
|
||||
start_cmd.add_argument("--port", type=int, default=8080, help="Port to listen on")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.command == "start":
|
||||
print(f"meshnet-tracker starting on port {args.port}")
|
||||
try:
|
||||
import time
|
||||
while True:
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
||||
else:
|
||||
parser.print_help()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user