This tool can be used to speed up the iteration time when you are working
on Go applications. It basically combines go install && your-app
into a single step. Another feature is to quickly setup a new package.
go get -u github.com/mbertschler/run
This works if the package mycmd is located in either of those locations:
$GORUNDIR/mycmd
# basic usage:
run mycmd
# pass any arguments as you usually would:
run mycmd -flag value file.txt
This command creates a new Go command in $GORUNDIR/mycmd
.
This will create a folder, an empty main.go file, and open this file
in your editor. This is useful for small tools and scripting applications.
# create a new package:
run newcmd new
# build and run this package:
run newcmd
This tool is released under the Apache 2.0 license. See LICENSE.