Skip to content

feat: linuxdo kit domain -- hot, latest, top#1

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

feat: linuxdo kit domain -- hot, latest, top#1
tamnd merged 1 commit into
mainfrom
feat/kit-domain

Conversation

@tamnd

@tamnd tamnd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Implements the kit domain layer for linux.do.

  • linuxdo hot -- hot topics
  • linuxdo latest -- latest topics
  • linuxdo top [period] -- top topics by period (all/daily/weekly/monthly/quarterly/yearly, defaults to weekly)

The domain registers via kit.Register(Domain{}) in init(), so a blank import wires the full CLI/API/MCP surface from a single source of truth. The existing Client and TopicRecord types are reused unchanged; domain.go just adapts them into the kit handler shape.

Adds linuxdo/domain_test.go covering DomainInfo, kit.Domains() registration, and kit.Lookup round-trip. All tests pass.

Pulls in github.com/tamnd/any-cli v0.4.0.

Adds linuxdo/domain.go registering the linuxdo kit.Domain with three
operations: hot, latest, and top (period flag). The domain wires the
existing Client + TopicRecord into the kit registry so the binary,
any host (ant), and MCP all share one source of truth.

Also adds linuxdo/domain_test.go covering DomainInfo fields,
kit.Domains() registration, and kit.Lookup round-trip.

Pulls in github.com/tamnd/any-cli v0.4.0 as a dependency.
@tamnd tamnd merged commit bc3f57d into main Jun 15, 2026
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