From ac966af3d126d59081d119e05ba02f946257f669 Mon Sep 17 00:00:00 2001 From: ai_xiaopei <xiaopei@aisim.cn> Date: Sun, 26 Jul 2026 23:22:36 +0800 Subject: [PATCH] fix: 移除所有help中的等号格式 --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c772d23 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +.PHONY: build test clean install + +# 构建 +build: + CGO_ENABLED=1 go build -tags fts5 -o bin/kb-cli . + +# 安装到 ~/go/bin +install: + CGO_ENABLED=1 go install -tags fts5 . + +# 测试 +test: + CGO_ENABLED=1 go test -tags fts5 ./... + +# 详细测试 +test-v: + CGO_ENABLED=1 go test -tags fts5 -v ./... + +# 清理 +clean: + rm -rf bin/ + go clean + +# 运行示例 +run-search: + ./bin/kb-cli search 充装 --top 5 + +run-index: + ./bin/kb-cli index build + +run-status: + ./bin/kb-cli index status -- Gitblit v1.9.1