diff --git a/Makefile b/Makefile deleted file mode 100644 index 9ca842a..0000000 --- a/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -.PHONY: all test-color lint try-4-real build clean - -all: test-color lint - go mod tidy - $(MAKE) test-color - $(MAKE) lint - $(MAKE) build - $(MAKE) clean - -test-color: - go install github.com/haunt98/go-test-color@latest - go-test-color -race -failfast . - -lint: - golangci-lint run . - -try-4-real: - go run . -race ./example/... - -build: - $(MAKE) clean - go build -o go-test-color . - -clean: - rm -f go-test-color diff --git a/go.mod b/go.mod index 90fb359..ac0125c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/haunt98/go-test-color -go 1.18 +go 1.22 require github.com/fatih/color v1.17.0 diff --git a/justfile b/justfile new file mode 100644 index 0000000..f627bcc --- /dev/null +++ b/justfile @@ -0,0 +1,20 @@ +all: tidy test-color lint + +tidy: + go mod tidy + +test-color: + go install github.com/haunt98/go-test-color@latest + go-test-color -race -failfast . + +lint: + golangci-lint run . + +try-4-real: + go run . -race ./example/... + +build: + go build -o go-test-color . + +clean: + rm -f go-test-color