Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Created July 3, 2023 17:00
Show Gist options
  • Save wizardishungry/60e7aca9351ce8d44d73ffbda003d014 to your computer and use it in GitHub Desktop.
Save wizardishungry/60e7aca9351ce8d44d73ffbda003d014 to your computer and use it in GitHub Desktop.
ZSH function to commands vendored in tools.go. `gt toolname` -> `go run example.com/tool/cmd/toolname`
function gt { go run $(go list -f '{{join .Imports "\n" }}' -tags tools tools.go | egrep "\/$1\$" ) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment