From 01cb526da29b44eb1253066d096b323fda02764a Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 21 Sep 2026 07:20:21 +0000 Subject: [PATCH] Move entrypoint to cmd/keyfunc REPO_POLICIES.md keeps Go entrypoints under cmd/, one main.go per binary whose body is a single call into internal/. Move the root main.go there and point the Makefile build target at ./cmd/keyfunc; the binary is still written to ./keyfunc. main.go is otherwise unchanged. (closes #20) Model: opus-4-8 --- Makefile | 2 +- main.go => cmd/keyfunc/main.go | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename main.go => cmd/keyfunc/main.go (100%) diff --git a/Makefile b/Makefile index af82436..b977ebe 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ setup: @script/setup build: - go build -trimpath -ldflags "$(LDFLAGS)" -o keyfunc . + go build -trimpath -ldflags "$(LDFLAGS)" -o keyfunc ./cmd/keyfunc test: @script/test diff --git a/main.go b/cmd/keyfunc/main.go similarity index 100% rename from main.go rename to cmd/keyfunc/main.go