Commit 49af127
feat: add
* feat: add `docs comments` subcommand for managing Google Doc comments
Add a full `gog docs comments` command tree that provides a
doc-centric interface for managing comments on Google Docs via
the Drive API v3 comments endpoint.
Subcommands:
list - List comments (filters resolved by default, --include-resolved to show all)
get - Get a single comment with full details including replies
add - Add a comment, optionally anchored to quoted text
reply - Reply to a comment
resolve - Resolve a comment (mark as done), with optional message
delete - Delete a comment
Key differences from `drive comments`:
- `list` filters resolved comments by default (--include-resolved to include)
- `list` always shows quoted text column (no separate flag needed)
- `resolve` subcommand (drive comments has no equivalent)
- Accepts Google Doc URLs in addition to bare IDs (via normalizeGoogleID)
- Doc-centric naming and help text
Follows existing patterns: uses shared helpers (collectAllPages,
tableWriter, formatDateTime, truncateString, normalizeGoogleID,
failEmptyExit, dryRunExit, confirmDestructive), same auth/token
flow, consistent output formatting.
* fix: improve docs comments list and anchoring (#263) (thanks @alextnetto)
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com>docs comments subcommand for managing Google Doc comments (#263)1 parent c530eb3 commit 49af127
4 files changed
Lines changed: 1103 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments