#!/usr/bin/env sh

# Retrieve mockgen version from go.mod
mockgen="$(go list -f '{{ .Path}}/mockgen@{{ .Version }}' -m go.uber.org/mock)"
# Run mockgen with the given args
exec go run "${mockgen}" -typed "$@"
