diff --git a/.tasks/backlog/2026-02-17-rename-util-validate.md b/.tasks/backlog/2026-02-17-rename-util-validate.md deleted file mode 100644 index 34535be7..00000000 --- a/.tasks/backlog/2026-02-17-rename-util-validate.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Rename cmd/util_validate.go -status: backlog -created: 2026-02-17 -updated: 2026-02-17 ---- - -## Objective - -`cmd/util_validate.go` needs to be renamed. The current name doesn't -follow the project's naming conventions for cmd/ files which use the -pattern `client_*.go`, `api_*.go`, `worker_*.go`, etc. - -## Tasks - -- [ ] Determine correct name based on what the file does and where it - fits in the command hierarchy -- [ ] Rename the file -- [ ] Update any references/imports -- [ ] Verify tests still pass diff --git a/.tasks/done/2026-02-17-rename-util-validate.md b/.tasks/done/2026-02-17-rename-util-validate.md new file mode 100644 index 00000000..fd6de926 --- /dev/null +++ b/.tasks/done/2026-02-17-rename-util-validate.md @@ -0,0 +1,32 @@ +--- +title: Rename cmd/util_*.go files to descriptive names +status: done +created: 2026-02-17 +updated: 2026-02-17 +--- + +## Objective + +`cmd/util_validate.go` needs to be renamed. The current name doesn't +follow the project's naming conventions for cmd/ files which use the +pattern `client_*.go`, `api_*.go`, `worker_*.go`, etc. + +## Tasks + +- [x] Determine correct name based on what the file does and where it + fits in the command hierarchy +- [x] Rename the file +- [x] Update any references/imports +- [x] Verify tests still pass + +## Outcome + +Renamed all three `util_` prefixed files to descriptive names, matching +the convention used by major Cobra CLI projects (Docker CLI, NATS CLI): + +- `cmd/util_validate.go` → `cmd/validate.go` +- `cmd/util_log.go` → `cmd/log.go` +- `cmd/util_ui.go` → `cmd/ui.go` + +No import changes needed — all files are in `package cmd`. Build, tests, +and vet all pass. diff --git a/cmd/util_log.go b/cmd/log.go similarity index 100% rename from cmd/util_log.go rename to cmd/log.go diff --git a/cmd/util_ui.go b/cmd/ui.go similarity index 100% rename from cmd/util_ui.go rename to cmd/ui.go diff --git a/cmd/util_validate.go b/cmd/validate.go similarity index 100% rename from cmd/util_validate.go rename to cmd/validate.go