Skip to content

Conversation

@andybergon
Copy link

Closes #207

Summary

  • Add gog sheets notes <spreadsheetId> <range> command to read cell notes (annotations)
  • Uses Spreadsheets.Get API with targeted field mask for minimal payload
  • Supports both text (tabwriter table) and JSON output modes

Why

The existing sheets get uses the Values API which doesn't expose cell notes. Notes are stored in CellData.Note and require the full Spreadsheets API. This uses a narrow fields parameter to keep responses small.

Test plan

  • Unit tests for JSON output, text output, and empty notes
  • Full test suite passes (go test ./...)
  • Manually tested against a real spreadsheet with notes

🤖 Generated with Claude Code

The existing `sheets get` uses the Values API which doesn't expose cell
notes. This adds `sheets notes <spreadsheetId> <range>` which uses the
full Spreadsheets.Get API with a narrow field mask to fetch only notes
and formatted values, keeping the response payload minimal.

Supports both text (tabwriter table) and JSON output modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 sheets notes command to read cell notes

1 participant