feat(slides): add page thumbnail command (#98)#107
Merged
Conversation
Add `gws slides thumbnail` to get slide page thumbnail URLs via the Slides API. Supports slide identification by object ID or 1-based number, configurable thumbnail size (SMALL/MEDIUM/LARGE), and optional download to a local file path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- CI was failing: staticcheck SA5011 nil pointer dereference after t.Error (doesn't stop test). Changed to t.Fatal. - Added 30s timeout to HTTP client for thumbnail download to prevent indefinite stalls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Added thumbnail command to SKILL.md and references/commands.md - Added thumbnail to TestSkillCommands_MatchCLI - Changed t.Error to t.Fatal for nil flag checks (staticcheck SA5011) - Added 30s HTTP timeout for thumbnail download Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
804aa4b to
2c56c83
Compare
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gws slides thumbnail <presentation-id>command that returns the thumbnail URL for a specific slide page--slideflag accepts either a slide object ID or a 1-based slide number (resolved automatically via the Presentations API)--sizeflag controls thumbnail resolution: SMALL, MEDIUM (default), or LARGE--download <path>flag optionally downloads the thumbnail image to a local fileTest plan
go vet ./...passesgo test ./cmd/... -run TestSlidesThumbnail— all 4 tests passgo test ./cmd/... -run TestSlidesCommands— thumbnail registered in command structuregofmtapplied to modified files🤖 Generated with Claude Code