grokkit/cmd
Greg Gauthier 99ef10b16b
Some checks failed
CI / Test (push) Successful in 34s
CI / Lint (push) Failing after 19s
CI / Build (push) Successful in 20s
refactor(cmd): extract run funcs and add injectable deps for testability
- Introduce newGrokClient and gitRun vars to allow mocking in tests.
- Refactor commit, commitmsg, history, prdescribe, and review cmds into separate run funcs.
- Update docs, lint, and review to use newGrokClient.
- Add comprehensive unit tests in run_test.go covering happy paths, errors, and edge cases.
- Expand grok client tests with SSE server mocks for Stream* methods.
2026-03-02 20:47:16 +00:00
..
agent_test.go chore(build): add Makefile and tests for commands and utilities 2026-03-01 00:24:48 +00:00
agent.go feat(config): add per-command model defaults 2026-03-02 16:56:56 +00:00
chat_test.go refactor(cmd): improve error handling in commands and tests 2026-03-01 14:10:24 +00:00
chat.go feat(config): add per-command model defaults 2026-03-02 16:56:56 +00:00
client.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
commit_test.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
commit.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
commitmsg.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
completion.go refactor(cmd): improve error handling in commands and tests 2026-03-01 14:10:24 +00:00
docs_test.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
docs.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
edit_helper_test.go test: add unit tests for chat history, edit helper, and code cleaning 2026-03-01 12:44:20 +00:00
edit_test.go refactor(cmd): improve error handling in commands and tests 2026-03-01 14:10:24 +00:00
edit.go feat(config): add per-command model defaults 2026-03-02 16:56:56 +00:00
history_test.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
history.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
lint_test.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
lint.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
prdescribe_test.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
prdescribe.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
review_test.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
review.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00
root.go feat(cmd): add AI documentation generation and command tests 2026-03-02 20:13:50 +00:00
run_test.go refactor(cmd): extract run funcs and add injectable deps for testability 2026-03-02 20:47:16 +00:00