From 3973312e40edf26f2e0ef145af7cc863af0ca3a5 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Fri, 28 Jun 2024 15:09:04 +0200 Subject: [PATCH] chore(cli): move main command into subdirectory (#14) --- Makefile | 2 +- main.go => cmd/go-junit-report/main.go | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename main.go => cmd/go-junit-report/main.go (100%) diff --git a/Makefile b/Makefile index 6d9d59a..ea0e653 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ test: go test ./... build/go-junit-report build/go-junit-report.exe: clean - go build --ldflags "-s -X main.Version=$(VERSION) -X main.Revision=$(REVISION) -X main.BuildTime=$(TIMESTAMP)" -o $@ + go build --ldflags "-s -X main.Version=$(VERSION) -X main.Revision=$(REVISION) -X main.BuildTime=$(TIMESTAMP)" -o $@ ./cmd/go-junit-report build/go-junit-report-$(VERSION)-$(GOOS)-$(GOARCH).tar.gz: build/go-junit-report tar czf $@ -C build go-junit-report diff --git a/main.go b/cmd/go-junit-report/main.go similarity index 100% rename from main.go rename to cmd/go-junit-report/main.go