Skip to content

feat(sheets): add format command#72

Merged
steipete merged 1 commit intoopenclaw:mainfrom
nilzzzzzz:feature/sheets-format-command
Jan 16, 2026
Merged

feat(sheets): add format command#72
steipete merged 1 commit intoopenclaw:mainfrom
nilzzzzzz:feature/sheets-format-command

Conversation

@nilzzzzzz
Copy link
Copy Markdown
Contributor

@nilzzzzzz nilzzzzzz commented Jan 13, 2026

Description

Hi @steipete,

love the cli and i am a heavy user. One thing i was missing to format stuff so the sheets look customer ready :D

I hope contributions are welcome, tested the cases with AI and manually. If you need something let me know.

Add gog sheets format to apply cell formatting via Sheets BatchUpdate (RepeatCell + CellFormat). Includes validation, tests, docs, and changelog updates.

Use Case

Scriptable formatting for automation pipelines (bold headers, number/currency formats, colors, alignment) without UI.

Prompt History (verbatim-ish)

  • "allow also formatting for google sheets, investigate the cli and come up with a plan"
  • "copy format i dont think i need, but format-json and format makes sense"
  • "what is more consistent for the existing api" → chose --format-json + --format-fields
  • "i want you to implement, we only need the format sub command plus the tests"
  • "run the tests and the readme changelog needs update"
  • "test it in this sheet" → manual run against sample sheet
  • "add a few numbers nice formatted"
  • "create a pr... explain the use case, explain what my prompt history was and which commands we enable"

Commands Enabled

  • gog sheets format <spreadsheetId> <range> --format-json '{...}' --format-fields 'userEnteredFormat.*'

How has this been tested?

  • go test ./internal/cmd -run SheetsFormat
  • Manual: gog sheets format on sample sheet (bold header, background color, number/currency formats)
image

@nilzzzzzz nilzzzzzz changed the title Sheets: add format command feat(sheets): add format command Jan 13, 2026
@steipete steipete self-assigned this Jan 16, 2026
@steipete
Copy link
Copy Markdown
Collaborator

They ver much are nilz, thank you!

@steipete
Copy link
Copy Markdown
Collaborator

Appreciate the prompt!

@steipete steipete merged commit 4105be8 into openclaw:main Jan 16, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test (failed: no package.json)\n- Tests: make test\n- Land commit: 47c49fb\n- Merge commit: 4105be8\n\nThanks @nilzzzzzz!

@nilzzzzzz
Copy link
Copy Markdown
Contributor Author

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test (failed: no package.json)\n- Tests: make test\n- Land commit: 47c49fb\n- Merge commit: 4105be8\n\nThanks @nilzzzzzz!

Thank you for the quick review!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 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.

2 participants