Created
July 3, 2023 17:00
-
-
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`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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