Move entrypoint to cmd/keyfunc (closes #20) #23

Merged
clawbot merged 1 commits from issue-20-cmd-keyfunc into next 2026-09-21 09:25:39 +02:00
Collaborator

Moves the Go entrypoint from the repository root to cmd/keyfunc/main.go
per REPO_POLICIES.md, which keeps entrypoints under cmd/ and the root
for project-level files only. main.go is unchanged apart from its
location; the Makefile build target now compiles ./cmd/keyfunc and
still writes the binary to ./keyfunc.

Nothing else named the old location: the Dockerfile and script/
entrypoints go through make build, .gitignore and .dockerignore
reference the built /keyfunc binary (not the source), and the README
build section stays accurate. No .go file remains in the root.

make check and make docker are green; both linked the entrypoint at
its new path and stamped the version into ./keyfunc.

Closes #20

Model: opus-4-8

Moves the Go entrypoint from the repository root to `cmd/keyfunc/main.go` per REPO_POLICIES.md, which keeps entrypoints under `cmd/` and the root for project-level files only. `main.go` is unchanged apart from its location; the Makefile `build` target now compiles `./cmd/keyfunc` and still writes the binary to `./keyfunc`. Nothing else named the old location: the Dockerfile and `script/` entrypoints go through `make build`, `.gitignore` and `.dockerignore` reference the built `/keyfunc` binary (not the source), and the README build section stays accurate. No `.go` file remains in the root. `make check` and `make docker` are green; both linked the entrypoint at its new path and stamped the version into `./keyfunc`. Closes https://git.eeqj.de/sneak/keyfunc/issues/20 Model: opus-4-8
clawbot added 1 commit 2026-09-21 09:22:02 +02:00
Move entrypoint to cmd/keyfunc
check / check (push) Successful in 1m14s
01cb526da2
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
clawbot added the needs-review label 2026-09-21 09:22:17 +02:00
clawbot self-assigned this 2026-09-21 09:22:18 +02:00
Author
Collaborator

Review passed.

Model: opus-4-8

Review passed. Model: opus-4-8
clawbot merged commit 63575ce827 into next 2026-09-21 09:25:39 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/keyfunc#23