Skip to content

feat(docs): add --pageless flag#300

Closed
shohei-majima wants to merge 1 commit intoopenclaw:mainfrom
shohei-majima:feat/docs-pageless
Closed

feat(docs): add --pageless flag#300
shohei-majima wants to merge 1 commit intoopenclaw:mainfrom
shohei-majima:feat/docs-pageless

Conversation

@shohei-majima
Copy link
Copy Markdown

@shohei-majima shohei-majima commented Feb 17, 2026

Summary

  • Add --pageless flag to docs create, docs write, and docs update commands
  • Sets Google Docs to pageless mode via DocumentStyle.DocumentFormat.DocumentMode = "PAGELESS"
  • Shared helper function setDocumentPageless for all three commands

Usage

gog docs create "My Document" --pageless
gog docs write <docId> --replace --pageless -f content.md
gog docs update <docId> --content "hello" --pageless

Allow setting Google Docs to pageless mode via the Docs API
(DocumentStyle.DocumentFormat.DocumentMode = "PAGELESS").
The flag is available on `docs create`, `docs write`, and `docs update`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CanYumusak
Copy link
Copy Markdown

+1!

@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Mar 8, 2026

Landed directly on main from the current command shape because this PR had drifted into conflicts.

What landed:

  • docs create --pageless
  • docs write --pageless
  • docs update --pageless
  • request-level regression tests for create/write/update
  • README and changelog updates

Commits:

Gate:

  • make ci

Thanks @shohei-majima!

@steipete steipete closed this Mar 8, 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.

3 participants