forked from mtusi2026/mtusi2026lab3
14 lines
394 B
Python
14 lines
394 B
Python
#!/usr/bin/env python3
|
|
import argparse
|
|
import json
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "student-tests"))
|
|
from cluster import rolling_replace
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--base-url", default="http://127.0.0.1:18080")
|
|
args = parser.parse_args()
|
|
print(json.dumps(rolling_replace(args.base_url), indent=2))
|