diff --git a/.gitignore b/.gitignore index ba077a4..bb37f7d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bin +.idea/ \ No newline at end of file diff --git a/README.md b/README.md index 6c7fdc6..1d89071 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ It's __important__ to understand that currently only a __single__ command with ## Installation +[![Open In Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/github.com/mstruebing/duration) + ### From Source In order to build from source you need `go` and `make` installed. diff --git a/devbox.json b/devbox.json new file mode 100644 index 0000000..ff89af1 --- /dev/null +++ b/devbox.json @@ -0,0 +1,14 @@ +{ + "packages": [ + "go@1.20" + ], + "shell": { + "init_hook": [ + "export \"GOROOT=$(go env GOROOT)\"" + ], + "scripts": { + "build": "GO111MODULE=on CGO_ENABLED=0 go build -o ./bin/duration ./...", + "test": "go test -race -cover ./..." + } + } +} \ No newline at end of file