modify pluginator to add support for krm function

This commit is contained in:
Donny Xia
2020-11-10 17:26:20 -08:00
parent 47b12fa3dc
commit 260e093547
14 changed files with 864 additions and 150 deletions

30
cmd/pluginator/Makefile Normal file
View File

@@ -0,0 +1,30 @@
.PHONY: statik test all clean generate run
FUNC_WRAPPER_SRC_DIR = funcwrappersrc
FUNC_WRAPPER_DST_DIR = funcwrapper
all: test build
statik:
go get github.com/rakyll/statik
test: generate
go test ./...
generate: statik
( \
cd krmfunction; \
statik -src=$(FUNC_WRAPPER_SRC_DIR) -f -p $(FUNC_WRAPPER_DST_DIR) -include=main.go,go.mod.src \
)
build: generate
go build -o pluginator main.go
install: generate
go install .
run: generate
go run . $(ARGS)
clean:
rm -f pluginator