Skip to content

feat: add sheets notes command to read cell notes#208

Merged
steipete merged 3 commits intoopenclaw:mainfrom
andybergon:feat/sheets-notes
Feb 14, 2026
Merged

feat: add sheets notes command to read cell notes#208
steipete merged 3 commits intoopenclaw:mainfrom
andybergon:feat/sheets-notes

Conversation

@andybergon
Copy link
Copy Markdown
Contributor

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

andybergon and others added 3 commits February 8, 2026 21:47
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>
# Conflicts:
#	internal/cmd/sheets.go
@steipete steipete merged commit c530eb3 into openclaw:main Feb 14, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

Landed onto main.

  • Gate: make ci
  • Land commit (PR branch): 7ac4434
  • Merge commit (squash): c530eb3

Thanks @andybergon!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
* feat: add `sheets notes` command to read cell notes

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>

* fix: harden sheets notes output (openclaw#208) (thanks @andybergon)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.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

2 participants