feat(cli): add --tab flag for per-tab Google Doc export#535
Closed
johnbenjaminlewis wants to merge 3 commits intoopenclaw:mainfrom
Closed
feat(cli): add --tab flag for per-tab Google Doc export#535johnbenjaminlewis wants to merge 3 commits intoopenclaw:mainfrom
johnbenjaminlewis wants to merge 3 commits intoopenclaw:mainfrom
Conversation
Return an error from findTab instead of nil, listing available tab titles when no match is found. This gives users actionable feedback instead of a bare "tab not found" message. Made-with: Cursor
…ient Factor out the OAuth transport setup from optionsForAccountScopes into a reusable authenticatedTransport helper. Expose NewHTTPClient so callers that need a raw *http.Client (e.g. for custom redirect policies) can get one without going through the google-api-go options layer.
Add experimental --tab flag to `gog docs export` and `gog drive download` that exports a single tab from a Google Doc by title or ID. Uses the undocumented per-tab Docs export endpoint with a custom redirect policy that rejects non-Google redirects to detect auth failures early.
e7ece40 to
5a741be
Compare
Collaborator
|
Landed on What landed:
Verification:
Thanks @johnbenjaminlewis. |
Collaborator
|
Closing as landed on main in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(cli): add --tab flag for per-tab Google Doc export
Adds
--tabtogog docs exportandgog drive downloadto export a single tab by title or ID:pdf,docx,txt,md, andhtml(experimental)) with redirect detection for auth failuresDriveDownloadCmdnow runsnormalizeGoogleIDon file IDs (supports pasted URLs)Test plan
docs export --tabanddrive download --tab