feat(docs): add Google Docs tab management commands#547
feat(docs): add Google Docs tab management commands#547chopenhauer wants to merge 1 commit intoopenclaw:mainfrom
Conversation
|
A bit more context on the motivation here: I’m an OpenClaw user, and this came from a real workflow gap we hit while automating Google Docs from an agent environment.
But in practice we still got stuck on the missing tab lifecycle operations:
That forced awkward workarounds exactly at the point where the CLI was otherwise close to being a complete automation surface for Docs. Before opening this, we checked the official Google Docs API and confirmed these operations are already supported upstream through
So this PR is really about closing that last gap and making the existing tab support fully usable for automation. This is especially useful for agent-driven document workflows where a tool needs to:
Also, as an OpenClaw user, it felt especially worth contributing back here because Thanks for building it. It’s been genuinely useful. |
|
Thanks for the PR. Docs tab lifecycle commands are already on The PR is now conflicting against current main, so I am closing it as superseded rather than asking you to rebase duplicate work. Attribution is preserved in the changelog. |
feat(docs): add Google Docs tab management commands
Adds first-class Google Docs tab management to
gog docs, covering the missing operations supported by the official Google Docs API but not yet exposed by the CLI.New commands
gog docs add-tab <docId> [--title ...] [--index N] [--parent-tab <title|id>] [--icon-emoji 😀]gog docs rename-tab <docId> --tab <title|id> --title <new-title>gog docs delete-tab <docId> --tab <title|id>Why
gog docsalready supports:But it was still missing the lifecycle operations needed for full tab automation:
The official Google Docs API supports all three via
documents.batchUpdaterequests:addDocumentTabupdateDocumentTabPropertiesdeleteTabImplementation notes
rename-tabanddelete-tabresolve--tabby title or tab ID.add-taboptionally resolves--parent-tabby title or tab ID.delete-tabuses the existing destructive confirmation flow.Files changed
internal/cmd/docs.gointernal/cmd/docs_tab_manage.gointernal/cmd/docs_tab_manage_test.goTest coverage added
New tests cover:
Caveat
This patch was prepared in a constrained environment without
go,gofmt, orghinstalled, so I could not run the normal local validation (make fmt,make test,make ci) before opening the PR.References
Official Google Docs API references used for this change: