#!/usr/bin/env python3
"""CLI entrypoint for Lazarus Pit operator control surface."""

import json
import sys

from .operator_ctl import OperatorCtl


def main():
    ctl = OperatorCtl()
    result = ctl.run_cli(sys.argv[1:])
    print(json.dumps(result, indent=2))
    sys.exit(0 if result.get("success") else 1)


if __name__ == "__main__":
    main()
