From 7643f37b739da471b3bd56ac4133e9b4c540175e Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Wed, 20 Nov 2024 18:47:02 +0100 Subject: [PATCH] initial version of CLI --- .gitignore | 4 ++++ Makefile | 23 +++++++++++++++++++++++ cmd/go2junit/go2junit.go | 7 +++++++ go.mod | 3 +++ 4 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 cmd/go2junit/go2junit.go create mode 100644 go.mod diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5192f2d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +bin/ +.env +*_templ.go +.idea/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..840c638 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.DEFAULT_GOAL := all + +# seems superfluous +#.PHONY: fmt vet build clean + +fmt: + go fmt ./... + +vet: fmt + go vet ./... + + +build: vet + mkdir -p bin + go build -o bin ./cmd/... + +test: build + go test -count=1 -coverprofile=testout/coverage.out ${TESTFLAGS} ./... + +clean: + rm -rf bin + +all: build diff --git a/cmd/go2junit/go2junit.go b/cmd/go2junit/go2junit.go new file mode 100644 index 0000000..99fd805 --- /dev/null +++ b/cmd/go2junit/go2junit.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello") +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..67b9e4c --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.wamblee.org/public/gotools + +go 1.23.3