Initial commit

This commit is contained in:
peio
2026-01-18 13:53:35 +00:00
commit 166db6cbf9
18 changed files with 1011 additions and 0 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
BINARY := kc-policy
BIN_DIR := bin
.PHONY: build run test tidy clean install
build:
go build -o $(BIN_DIR)/$(BINARY) ./cmd/$(BINARY)
run:
go run ./cmd/$(BINARY)
test:
go test ./...
tidy:
go mod tidy
clean:
rm -f $(BIN_DIR)/$(BINARY)
install: build
sudo install -m 0755 $(BIN_DIR)/$(BINARY) /usr/local/sbin/$(BINARY)