Initial draft

This commit is contained in:
Kevin Veen-Birkenbach
2025-12-23 11:14:24 +01:00
parent 042f16f44b
commit 541eb04351
14 changed files with 445 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
from .cli import parse_args
from .bootstrap import run_bootstrap
from .errors import BootstrapError
import sys
def main() -> int:
args = parse_args()
try:
token = run_bootstrap(args)
print(token)
return 0
except BootstrapError as exc:
print(f"[ERROR] {exc}", file=sys.stderr)
return 2
except Exception as exc:
print(f"[FATAL] {type(exc).__name__}: {exc}", file=sys.stderr)
return 3
if __name__ == "__main__":
raise SystemExit(main())