From 74b59ed4fa9d8d9bb5a5c63acb94c26686658d4b Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 5 Oct 2023 11:03:56 -0400 Subject: [PATCH] Add justfile --- .gitignore | 3 +++ justfile | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 justfile diff --git a/.gitignore b/.gitignore index 2dc5490..21aea0e 100644 --- a/.gitignore +++ b/.gitignore @@ -120,4 +120,7 @@ modules.xml !.vscode/extensions.json *.code-workspace +# binary +gilo + # End of https://www.toptal.com/developers/gitignore/api/go,jetbrains+all,vscode diff --git a/justfile b/justfile new file mode 100644 index 0000000..2d80492 --- /dev/null +++ b/justfile @@ -0,0 +1,27 @@ +# Lists the available actions +default: + @just --list + +# Run all the tests +test: + go test ./... -v + +_cover: + go test ./... -coverprofile=coverage.out + +# Calculate code coverage +coverage: _cover + go tool cover -html=coverage.out + +# Cleanup generated files +clean: + rm -f gilo + rm -f coverage.out + +# Run the autoformatter on all files +format: + go fmt ./... + +# Build the binary +gilo: + go build