Skip to content

Add ask, show, and jobs story list commands#3

Merged
tamnd merged 1 commit into
mainfrom
feat/ask-show-jobs
Jun 14, 2026
Merged

Add ask, show, and jobs story list commands#3
tamnd merged 1 commit into
mainfrom
feat/ask-show-jobs

Conversation

@tamnd

@tamnd tamnd commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Wire ask, show, and jobs commands through the kit domain, completing all seven story-list operations
  • Each new command follows the same pattern as the existing top/new/best handlers: OpMeta registration + handler function delegating to the Client method
  • Live-verified: all three commands return real data from hacker-news.firebaseio.com

Test plan

  • go build ./... passes
  • go test ./... passes
  • ./bin/hackernews ask --limit 3 returns Ask HN stories
  • ./bin/hackernews show --limit 2 returns Show HN stories
  • ./bin/hackernews jobs --limit 2 returns HN job posts
  • Existing top, best, item, user commands unaffected

Wire AskStories, ShowStories, and JobStories through the kit domain:
three new OpMeta registrations and their handler functions, mirroring
the existing top/new/best pattern. All seven list+single ops now live
under the hackernews binary.
@tamnd
tamnd merged commit a9f9d85 into main Jun 14, 2026
6 of 7 checks passed
@tamnd
tamnd deleted the feat/ask-show-jobs branch June 14, 2026 21:15
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