#!/usr/bin/env bash
# Wrapper that delegates to the bundled CLI binary.
# This keeps the top-level directory clean while the actual oclif
# package lives in .cli/ with its bundled Node.js runtime.
# Resolve symlinks so the wrapper works when invoked via a /usr/local/bin symlink.
SCRIPT_SELF="$(readlink -f "$0" 2>/dev/null || python3 -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_SELF")" && pwd)"
exec "$SCRIPT_DIR/.cli/bin/liquibase-platform" "$@"
