calendar: add --alarm flag to send command for custom reminder triggers

Previously the send command hardcoded a 1-day VALARM. Now accepts
--alarm with duration format (e.g. 1h, 30m, 2d), defaulting to 1d.
This commit is contained in:
Yanxin Lu
2026-03-27 09:05:30 -07:00
parent 11b3e39586
commit c66ccc4c44
4 changed files with 29 additions and 4 deletions

View File

@@ -63,7 +63,8 @@ $SKILL_DIR/scripts/calendar.sh send \
--summary "Lunch at Tartine" \
--start "2026-03-20T12:00:00" \
--end "2026-03-20T13:00:00" \
--location "Tartine Bakery, SF"
--location "Tartine Bakery, SF" \
--alarm 1h
```
### Send Options
@@ -82,6 +83,7 @@ $SKILL_DIR/scripts/calendar.sh send \
| `--organizer` | No | Organizer display name (defaults to `--from`) |
| `--rrule` | No | Recurrence rule (e.g. `FREQ=WEEKLY;COUNT=13;BYDAY=TU`) |
| `--uid` | No | Custom event UID (auto-generated if omitted) |
| `--alarm` | No | Reminder trigger: `1d`, `2h`, `30m` (default: `1d`) |
| `--account` | No | Himalaya account name (if not default) |
| `--dry-run` | No | Print ICS + MIME without sending |