#!/usr/bin/env bash
# cl-format-migrate — direct, on-PATH wrapper for lib/cl-format-migrate.sh
# (no `larry tools` prefix needed). All args pass straight through;
# -h/--help is handled by the underlying tool.
#
#   cl-format-migrate /opt/cloverleaf/cis2025.01/integrator/adt/tables --dry-run
#   cl-format-migrate . --type tbl --confirm yes --out /tmp/cl-format-report
set -o pipefail
_self="${BASH_SOURCE[0]}"; [ -L "$_self" ] && _self="$(readlink "$_self")"
. "$(cd "$(dirname "$_self")" && pwd)/_nc_common.sh"
lib="$(_nc_resolve_lib)" || { echo "cl-format-migrate: lib/ toolkit not found (set LARRY_LIB_DIR or LARRY_HOME)" >&2; exit 1; }
if [ $# -eq 0 ]; then exec bash "$lib/cl-format-migrate.sh" --help; fi
exec bash "$lib/cl-format-migrate.sh" "$@"
