loop

command module
v0.0.0-...-f74067c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 10 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL