Skip to content

feat: add canvases read command - #60

Merged
natikgadzhi merged 1 commit into
mainfrom
canvases-read
Jun 5, 2026
Merged

natikgadzhi merged 1 commit into
mainfrom
canvases-read

Conversation

@natikgadzhi

Copy link
Copy Markdown
Owner

Summary

  • Add canvases read <canvas-id> command that fetches Slack canvas content via the canvases.sections.lookup internal API
  • Renders canvas document tree as simplified markdown in text/table output (headings, paragraphs, lists, checklists, code blocks, blockquotes, dividers, links)
  • Returns full raw API response in JSON output
  • 24 unit tests covering parsing, rendering, and integration with httptest stub

Closes #52

Test plan

  • go build ./... passes
  • go vet ./... passes
  • golangci-lint run ./... has no new issues
  • go test ./... passes (24 new tests)
  • Manual test with a real Slack canvas ID

🤖 Generated with Claude Code

Add `canvases read <canvas-id>` command that fetches Slack canvas
content via the canvases.sections.lookup API and renders it as
simplified markdown (text output) or raw JSON (json output).

Supports headings, paragraphs, bulleted/ordered lists, checklists,
code blocks, blockquotes, dividers, and links.

Closes #52

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@natikgadzhi
natikgadzhi merged commit 24fd16b into main Jun 5, 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.

feat: add canvases read command

1 participant