Skip to content

feat(sheets): add --parent flag to create spreadsheet in a folder#424

Merged
steipete merged 1 commit intoopenclaw:mainfrom
ManManavadaria:feat(sheets)/add-parent-flag
Mar 7, 2026
Merged

feat(sheets): add --parent flag to create spreadsheet in a folder#424
steipete merged 1 commit intoopenclaw:mainfrom
ManManavadaria:feat(sheets)/add-parent-flag

Conversation

@ManManavadaria
Copy link
Copy Markdown
Contributor

Summary

Add a --parent flag to sheets create so new spreadsheets can be created directly in a specific Drive folder (by folder ID).

Changes

  • sheets create: New optional --parent <folderId> argument. When provided, the spreadsheet is created via the Sheets API and then moved to the given folder using the Drive API (Files.Update + AddParents).
  • If the move fails (e.g. invalid folder ID or permissions), the spreadsheet is still created in the root of My Drive; the error is reported and the user is informed they can move it manually.

Fixes #417

Usage

gog sheets create "My Sheet" --parent <folderId>

@ManManavadaria ManManavadaria changed the title sheets create: add --parent flag to create spreadsheet in a folder feat(sheets): add --parent flag to create spreadsheet in a folder Mar 6, 2026
@steipete steipete merged commit 5639822 into openclaw:main Mar 7, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 7, 2026

Landed via temp rebase onto main.

Thanks @ManManavadaria!

@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 7, 2026

Follow-up fixups landed on main after the PR merge race:

  • Final fix commit: 0287bf39cfcced5ac34744fcf2d50e3d6ef889fb
  • Gate: make ci

This adds real move semantics (remove existing parents), structured JSON move status, regression tests, and the changelog entry.

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.

feat(sheets): add --parent flag to sheets create

2 participants