bin
bin copied to clipboard
Feature: Add `go install`
Hello,
Some tools don't provides release via Github and instead uses go install. This feature check latest release via proxy golang and install tool using local go cmd.
$ ./bin install -p goinstall github.com/jrhouston/[email protected]
• Getting v0.1.8 release for github.com/jrhouston/tfk8s
• Copying for [email protected] into /home/ahdemir/bin/tfk8s
• Done installing tfk8s v0.1.8
$ ./bin update tfk8s
• /home/ahdemir/bin/tfk8s v0.1.8 -> v0.1.10 (github.com/jrhouston/tfk8s)
Do you want to continue? [Y/n] y
• Getting latest release for github.com/jrhouston/tfk8s
• Copying for [email protected] into /home/ahdemir/bin/tfk8s
• Done updating /home/ahdemir/bin/tfk8s to v0.1.10
$ ./bin remove tfk8s
I also had an issue when using remove, since latest release "existingremove" was removed and bin was unable to remove.
I did 3 commits:
- 1 restore existing remove
- 2 explicit error message when path missing
- 3 add goinstall support