Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Loop

Minimalistic task runner.

Status

Actions Go Report Card codecov

Installation

To install or update run the following command.

go get -u github.com/grzegorz-zur/loop

Configuration

Create .loop.json.

Example

{
	"include" : [
		"*.go",
		"go.mod"
	],
	"exclude" : [
		".*"
	],
	"execute": [
		{
			"exec": "gofmt",
			"args": [ "-s", "-w", "./..." ]
		},
		{
			"exec": "golint",
			"args": [ "-set_exit_status", "./..." ]
		},
		{
			"exec": "go",
			"args": [ "vet", "./..." ]
		},
		{
			"exec": "go",
			"args": [ "build", "./..." ]
		},
		{
			"exec": "go",
			"args": [ "test", "-timeout", "5s", "./..." ]
		},
		{
			"exec": "go",
			"args": [ "test", "-timeout", "5s", "-race", "-cover", "./..." ],
			"env": {
				"CGO_ENABLED": "1"
			}
		}
	],
	"run" : {
		"exec": "./app",
		"args": [ "-addr=:8443" ]
	}
}

Usage

loop

About

Minimalistic task runner

Topics

Resources

License

Stars

Watchers

Forks

Languages