#!/bin/sh
# Shim → JS implementation in ops/cli.js. The legacy `status` verb is
# translated to `service status all` for back-compat with ops/README.md;
# everything else passes through unchanged.
set -eu
DIR=$(cd -- "$(dirname -- "$0")" && pwd)
. "$DIR/_exec.sh"

case "${1:-}" in
  status)
    shift
    exec_bun_cli "$DIR/../cli.js" service status all "$@"
    ;;
  '')
    exec_bun_cli "$DIR/../cli.js" --help
    ;;
  *)
    exec_bun_cli "$DIR/../cli.js" "$@"
    ;;
esac
