Feat: support nested folders in namespace (#87)
This MR fixes an issue with nested namespaces. It also adds CI to the project for Go tests.
This commit is contained in:
21
makefile
21
makefile
@@ -1,2 +1,19 @@
|
||||
compile:
|
||||
cd cmd && go build -o bin && mv bin ../bin
|
||||
default: help
|
||||
|
||||
PROJECTNAME=$(shell basename "$(PWD)")
|
||||
|
||||
## compile: build golang project
|
||||
compile:
|
||||
@cd cmd && go build -o bin && mv bin ../bin
|
||||
## test: run golang project tests
|
||||
test:
|
||||
@cd cmd && go test -v
|
||||
|
||||
.PHONY: help
|
||||
all: help
|
||||
help: makefile
|
||||
@echo
|
||||
@echo " Choose a command run in "$(PROJECTNAME)":"
|
||||
@echo
|
||||
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
|
||||
@echo
|
||||
|
||||
Reference in New Issue
Block a user