@@ -27,7 +27,7 @@ GIT_COMMIT=$(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
2727LDFLAGS =-ldflags "-X main.version=$(VERSION ) -X main.commit=$(GIT_COMMIT ) -X main.date=$(BUILD_TIME ) -X main.builtBy=make"
2828
2929# Default target - build both CLI and MCP server
30- all : test build build-mcp
30+ all : test build build-mcp _setup
3131
3232# Create build directory
3333$(BUILD_DIR ) :
@@ -129,15 +129,6 @@ lint:
129129 @echo " Running linters..."
130130 golangci-lint run
131131
132- # Format Go code
133- fmt :
134- @echo " Formatting Go code..."
135- @$(GOCMD ) fmt ./...
136- @echo " ✅ Go code formatted"
137-
138- # Alias
139- format : fmt
140-
141132# Run all linters (CLI + MCP server)
142133lint-all : lint lint-mcp
143134
@@ -204,7 +195,6 @@ help:
204195 @echo " man-pages Generate Unix manual pages"
205196 @echo " install Install the CLI and manual pages to ~/.local/"
206197 @echo " test Run CLI tests"
207- @echo " fmt Format Go code"
208198 @echo " lint Run CLI linters"
209199 @echo " clean Clean CLI build artifacts"
210200 @echo " "
@@ -238,4 +228,7 @@ help:
238228 @echo " make version-set VERSION=1.2.3"
239229 @echo " make publish-mcp # Publish MCP server to npm"
240230
241- .PHONY : all build build-mcp build-all test test-mcp test-all test-coverage clean clean-mcp clean-all tidy deps mcp-deps deps-all lint lint-mcp lint-all fmt format man-pages install install-mcp install-all run publish-mcp help
231+ .PHONY : all build build-mcp build-all test test-mcp test-all test-coverage clean clean-mcp clean-all tidy deps mcp-deps deps-all lint lint-mcp lint-all man-pages install install-mcp install-all run publish-mcp help
232+ .PHONY : _setup
233+ _setup :
234+ @node .github/setup.js
0 commit comments