moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.88k stars 520 forks source link

Add a command: gvm run #404

Closed overflowingd closed 1 year ago

overflowingd commented 2 years ago

Hi all! In two words I found that it might be very helpful to run any go command as a one liner through gvm. Command notation:

gvm run <go-version> <go-command> [go-command-options...]

For example:

gvm run go1.18 install $GO118_PROJECT_DIR 

I found it might be helpful in process management daemons like supervisord's command directive, bash scripting and so on.