(config_path: str)
| 87 | |
| 88 | # ----------------------------- DEPLOY COMMAND ----------------------------- # |
| 89 | def read_config(config_path: str) -> dict: |
| 90 | try: |
| 91 | with open(config_path, "r") as file: |
| 92 | return json.load(file) |
| 93 | except FileNotFoundError: |
| 94 | print(f"[ERROR] Config file {config_path} not found.") |
| 95 | sys.exit(1) |
| 96 | except json.JSONDecodeError: |
| 97 | print(f"[ERROR] JSON decode error in config file {config_path}.") |
| 98 | sys.exit(1) |
| 99 | |
| 100 | |
| 101 | def deep_update(original: dict, updates: dict) -> dict: |