Skip to content

grzegorz-zur/loop

Repository files navigation

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