Skip to content

mbertschler/run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

run - build and run Go apps with one command

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.

Installation

go get -u github.com/mbertschler/run

Usage

Build and run a package

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

Create a new package

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

License

This tool is released under the Apache 2.0 license. See LICENSE.

About

Build and run Go applications with a single command

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages