Commit graph

4 commits

Author SHA1 Message Date
Snider
97a561c809 feat(qa): restore docblock check via go-devops import
Now that go-devops imports core/cli (not core/go/pkg/cli),
the circular dependency is resolved. Restore the docblock
coverage check using qa.CheckDocblockCoverage().

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 23:31:46 +00:00
Snider
57ad74d4e2 refactor: delete pkg/cli, migrate imports to core/cli
pkg/cli now lives in forge.lthn.ai/core/cli as its own module.
All cmd/gocmd imports updated. qa docblock check stubbed pending
go-devops circular dependency resolution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 23:08:03 +00:00
Snider
2a90ae65b7 refactor(cli): register commands through Core framework lifecycle
Replace the RegisterCommands/attachRegisteredCommands side-channel with
WithCommands(), which wraps command registration functions as framework
services. Commands now participate in the Core lifecycle via OnStartup,
receiving the root cobra.Command through Core.App.

Main() accepts variadic framework.Option so binaries pass their commands
explicitly — no init(), no blank imports, no global state.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 22:06:40 +00:00
Snider
8e7fb0e5a3 feat: absorb Go tooling commands from CLI
cmd/gocmd/ provides: fmt, test, fuzz, qa, cov, tools wrappers.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-21 21:45:52 +00:00