#!/usr/bin/env python3
import os
import sys
from pathlib import Path

sys.dont_write_bytecode = True

REPO = Path(__file__).resolve().parent
os.chdir(REPO)
sys.path.insert(0, str(REPO / "src" / "scripts"))

from cli import run_install

# tui=True: bare runs on a real TTY get the selection wizard; flags,
# headless envs, and ./legacy-install keep the classic flow.
raise SystemExit(run_install(sys.argv[1:], tui=True))
