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