by nkcmr · 8y ago · 0 comments
I just added bash completion to a few internal tools that work with kafka, basically just autocompleting topics. It was a little harder than I would have liked (who wants to write all that bash), and I had to fix a bug in Cobra, but overall it wasn't that bad.
I'm actually at Gophercon right now, if anyone wants to hack on Cobra at the community day on Thursday to make this easier, shoot me an email (@gmail).
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
Now, whenever you run `go install filename.go`, you'll automatically be able to run it anywhere on your machine.