agentgateway/tools/exec-go-tool
2026-02-10 10:22:51 -08:00

12 lines
187 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ]; then
echo "usage: $0 <go-tool-package> [args...]" >&2
exit 2
fi
WD=$(cd "$(dirname "$0")"; pwd)
TOOL=$(cd "$WD"; go tool -n "$1")
shift
exec "$TOOL" "$@"