From 9b9f3cbb7e41d81fc0845eaf4b38bf810d4ea7a2 Mon Sep 17 00:00:00 2001 From: Karolos Lykos Date: Thu, 26 Oct 2023 13:12:25 +0300 Subject: [PATCH 1/4] feat: add devbox container and updated readme --- .gitignore | 1 + README.md | 2 ++ devbox.json | 14 ++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 devbox.json 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..781b1c7 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ It's __important__ to understand that currently only a __single__ command with ## Installation +[![Built with Devbox](https://jetpack.io/img/devbox/shield_galaxy.svg)](https://github.com/KarolosLykos/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..3ad7d27 --- /dev/null +++ b/devbox.json @@ -0,0 +1,14 @@ +{ + "packages": [ + "go@1.20" + ], + "shell": { + "init_hook": [ + "export \"GOROOT=$(go env GOROOT)\"" + ], + "scripts": { + "build_cli": "GO111MODULE=on CGO_ENABLED=0 go build -o ./bin/duration ./...", + "test": "go test -race -cover ./...", + } + } +} \ No newline at end of file From 1430ad296b1b95480d3be4d7e63fd1dac6c66628 Mon Sep 17 00:00:00 2001 From: Karolos Lykos Date: Thu, 26 Oct 2023 13:15:49 +0300 Subject: [PATCH 2/4] mod: devbox configuration --- devbox.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devbox.json b/devbox.json index 3ad7d27..ff89af1 100644 --- a/devbox.json +++ b/devbox.json @@ -7,8 +7,8 @@ "export \"GOROOT=$(go env GOROOT)\"" ], "scripts": { - "build_cli": "GO111MODULE=on CGO_ENABLED=0 go build -o ./bin/duration ./...", - "test": "go test -race -cover ./...", + "build": "GO111MODULE=on CGO_ENABLED=0 go build -o ./bin/duration ./...", + "test": "go test -race -cover ./..." } } } \ No newline at end of file From b33955fdfbd80f2333b3fdd3e90a86736e3c9ae6 Mon Sep 17 00:00:00 2001 From: Karolos Lykos Date: Thu, 26 Oct 2023 14:04:35 +0300 Subject: [PATCH 3/4] mod: update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 781b1c7..5490b39 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ It's __important__ to understand that currently only a __single__ command with ## Installation -[![Built with Devbox](https://jetpack.io/img/devbox/shield_galaxy.svg)](https://github.com/KarolosLykos/duration/) +[![Open In Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/https://github.com/mstruebing/duration) ### From Source From b8061d4d35f4082358ac8e63846a0fee8b20854c Mon Sep 17 00:00:00 2001 From: Karolos Lykos Date: Thu, 26 Oct 2023 14:06:53 +0300 Subject: [PATCH 4/4] mod: update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5490b39..1d89071 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ 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/https://github.com/mstruebing/duration) +[![Open In Devbox.sh](https://jetpack.io/img/devbox/open-in-devbox.svg)](https://devbox.sh/github.com/mstruebing/duration) ### From Source