Add docs, Makefile

This commit is contained in:
2024-12-19 14:51:26 -05:00
parent 19c9fa0f76
commit f862973c44
33 changed files with 1037 additions and 128 deletions

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
CMD_NAME := git-project-manager
GO_FORMATTER := gofumpt
IS_GNU_SED := $(shell sed --version >/dev/null 2>&1 && echo true || echo false)
SED_INLINE := $(if $(filter true,$(IS_GNU_SED)),-i,-i '')
.PHONY: all test build install docs clean
all: test build install docs
test:
go test -v ./...
build: test
go build -o bin/${CMD_NAME}
install:
go install -v .
docs:
bin/${CMD_NAME} docs md
clean:
rm -rf bin/${CMD_NAME}