#!/usr/bin/env bash set -eu SCRIPT_DIR="$(cd -- "$(dirname -- "$0")" && pwd)" cd "$SCRIPT_DIR/tool" JQ=${JQ:-jq} export JQ_FLAVOR=${JQ_FLAVOR:-${JQ}} run() { ${JQ} -nr -L "$(realpath .)" -L "$(realpath ./lib)" -L "$(realpath ./dropins)/${JQ_FLAVOR}" \ --slurpfile exportFile "${EXPORT_FILE:-export.json}" \ 'include "main"; main' \ --args -- "$@" } run "$@"