Skip to content

feat: add kit domain registration#2

Merged
tamnd merged 1 commit into
mainfrom
feat/kit-domain
Jun 15, 2026
Merged

feat: add kit domain registration#2
tamnd merged 1 commit into
mainfrom
feat/kit-domain

Conversation

@tamnd

@tamnd tamnd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Wires the any-cli/kit domain layer on top of the existing stackoverflow library:

  • Registers 5 operations: question (resolver), hot, bounties, unanswered, search
  • Domain scheme: stackoverflow, host: stackoverflow.com
  • Adds kit:"id"/kit:"body"/table:"url,url" struct tags to Question/Answer/Tag/User types
  • Adds GetQuestion method to the client (single question by numeric id)
  • No breaking changes to the existing so CLI surface (cobra commands untouched)

Wires the any-cli/kit domain layer on top of the existing stackoverflow library:

- stackoverflow/domain.go: registers Domain, 5 ops (question resolver + hot/bounties/unanswered/search list ops)
- stackoverflow/domain_test.go: offline tests for scheme, Classify, Locate, Mint, registration
- stackoverflow/types.go: add kit:"id"/kit:"body"/table:"url,url" struct tags to Question/Answer/Tag/User
- stackoverflow/stackoverflow.go: add GetQuestion (single question by id, used by the resolver op)
- go.mod/go.sum: add github.com/tamnd/any-cli v0.4.0

No breaking changes to the existing so CLI surface (cobra commands untouched).
@tamnd tamnd merged commit 1dcc06b into main Jun 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant