from __future__ import annotations

import sys
from pathlib import Path


ROOT_DIR = Path(__file__).resolve().parent.parent
if str(ROOT_DIR) not in sys.path:
    sys.path.insert(0, str(ROOT_DIR))

from core.tenant_manager import TenantManager


def main() -> int:
    device_id = TenantManager().get_hardware_id()
    if not device_id:
        print("Device ID okunamadi.", file=sys.stderr)
        return 1

    print(device_id)
    return 0


if __name__ == "__main__":
    raise SystemExit(main())
input("Press Enter to exit...")

