You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add calendar events --sort/--order support and regenerate command docs.\n\nCo-authored-by: gado-ships-it <[email protected]>\nCo-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Added
6
6
7
+
- Calendar: add `calendar events --sort=start|end|summary|calendar` and `--order=asc|desc` so `--all` output can be returned chronologically across calendars instead of per-calendar API iteration order. Also documents `now` in the `--from`/`--to` help strings (already accepted by `timeparse`) — the relative form agents need when planning "from now on" — thanks @gado-ships-it.
7
8
- Drive: add `drive share --notify` for invite targets that require a Drive notification email.
8
9
- Calendar: keep `calendar appointments` as an explicit diagnostic because the Calendar API still rejects `eventTypes=appointmentSchedule`. (#329)
9
10
- CLI: add nested `docs tabs ...` and `forms questions ...` aliases for consistent sub-item command patterns while preserving existing flat commands. (#433)
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
39
39
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
40
40
|`--max`<br>`--limit`|`int64`| 10 | Max results |
41
41
|`--no-input`<br>`--non-interactive`<br>`--noninteractive`|`bool`|| Never prompt; fail instead (useful for CI) |
42
+
|`--order`|`string`| asc | Sort order |
42
43
|`--page`<br>`--cursor`|`string`|| Page token |
43
44
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
44
45
|`--private-prop-filter`|`string`|| Filter by private extended property (key=value) |
45
46
|`--query`|`string`|| Free text search |
46
47
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
47
48
|`--select`<br>`--pick`<br>`--project`|`string`|| In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
48
49
|`--shared-prop-filter`|`string`|| Filter by shared extended property (key=value) |
49
-
|`--to`|`string`|| End time (RFC3339 with timezone, date, or relative) |
50
+
|`--sort`|`string`|| Sort events by start\|end\|summary\|calendar (default: keep API order; with --all, start is recommended for chronological output) |
51
+
|`--to`|`string`|| End time (RFC3339 with timezone, date, or relative: now, today, tomorrow, monday) |
50
52
|`--today`|`bool`|| Today only (timezone-aware) |
51
53
|`--tomorrow`|`bool`|| Tomorrow only (timezone-aware) |
|`-p`<br>`--plain`<br>`--tsv`|`bool`| false | Output stable, parseable text to stdout (TSV; no colors) |
38
38
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
39
39
|`--select`<br>`--pick`<br>`--project`|`string`|| In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
40
-
|`--to`|`string`|| End time (RFC3339, date, or relative) |
40
+
|`--to`|`string`|| End time (RFC3339, date, or relative: now, today, tomorrow, monday) |
|`-h`<br>`--help`|`kong.helpFlag`|| Show context-sensitive help. |
34
34
|`-j`<br>`--json`<br>`--machine`|`bool`| false | Output JSON to stdout (best for scripting) |
@@ -39,7 +39,7 @@ gog calendar (cal) team <group-email> [flags]
39
39
|`-q`<br>`--query`|`string`|| Filter events by title (case-insensitive) |
40
40
|`--results-only`|`bool`|| In JSON mode, emit only the primary result (drops envelope fields like nextPageToken) |
41
41
|`--select`<br>`--pick`<br>`--project`|`string`|| In JSON mode, select comma-separated fields (best-effort; supports dot paths). Desire path: use --fields for most commands. |
42
-
|`--to`|`string`|| End time (RFC3339, date, or relative) |
42
+
|`--to`|`string`|| End time (RFC3339, date, or relative: now, today, tomorrow, monday) |
Copy file name to clipboardExpand all lines: internal/cmd/calendar_events_cmds.go
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ type CalendarEventsCmd struct {
13
13
CalendarID []string`arg:"" name:"calendarId" optional:"" help:"Calendar ID (default: primary); optional leading list/ls selector is accepted for compatibility"`
14
14
Cal []string`name:"cal" help:"Calendar ID or name (can be repeated)"`
15
15
Calendarsstring`name:"calendars" help:"Comma-separated calendar IDs, names, or indices from 'calendar calendars'"`
16
-
Fromstring`name:"from" help:"Start time (RFC3339 with timezone, date, or relative: today, tomorrow, monday)"`
17
-
Tostring`name:"to" help:"End time (RFC3339 with timezone, date, or relative)"`
16
+
Fromstring`name:"from" help:"Start time (RFC3339 with timezone, date, or relative: now, today, tomorrow, monday)"`
17
+
Tostring`name:"to" help:"End time (RFC3339 with timezone, date, or relative: now, today, tomorrow, monday)"`
18
18
Todaybool`name:"today" help:"Today only (timezone-aware)"`
19
19
Tomorrowbool`name:"tomorrow" help:"Tomorrow only (timezone-aware)"`
Sortstring`name:"sort" help:"Sort events by start|end|summary|calendar (default: keep API order; with --all, start is recommended for chronological output)" enum:"start,end,summary,calendar," default:""`
0 commit comments