Skip to content

Implement mastodon-cli: 6 public API commands#1

Merged
tamnd merged 1 commit into
mainfrom
feat/implement
Jun 15, 2026
Merged

Implement mastodon-cli: 6 public API commands#1
tamnd merged 1 commit into
mainfrom
feat/implement

Conversation

@tamnd

@tamnd tamnd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace scaffold stubs with real mastodon.social API calls (no authentication needed)
  • 6 commands: trends, posts, links, timeline <hashtag>, account <username>, instance
  • Wire types for all API responses with HTML stripping, history field parsing, and field mapping
  • Retry/pacing HTTP client with configurable rate, timeout, retries

Test plan

  • go test ./... passes (all in-package tests with httptest, no network)
  • mastodon trends, mastodon posts, mastodon links via trending endpoints
  • mastodon timeline programming via tag timeline
  • mastodon account Gargron via accounts/lookup
  • mastodon instance via /api/v1/instance

Replaces scaffold stubs with real mastodon.social API calls (no auth
needed). Commands: trends, posts, links, timeline <hashtag>, account
<username>, instance. HTML stripping, wire-type mapping, retry/pacing
client. All tests pass.
@tamnd tamnd merged commit aaeda5e into main Jun 15, 2026
5 of 8 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