Add --subscribe / --no-subscribe to recording creation commands by jeremy · Pull Request #187 · basecamp/basecamp-cli

added 2 commits

March 3, 2026 21:02
Picks up Subscriptions field on create request types
(CreateMessageRequest, CreateDocumentRequest, CreateScheduleEntryRequest).
Controls who gets subscribed and notified when creating messages, docs,
and schedule entries. Critical for bot/agent use cases that need silent
creation.

  --no-subscribe        subscribe nobody (no notifications)
  --subscribe "X,Y"     subscribe specific people (names, emails, IDs, "me")

Mutually exclusive. Neither flag preserves server default (everyone).
Explicit --subscribe with no resolvable people is a hard error, including
--subscribe "" (via cmd.Flags().Changed detection).

Available on: message, messages create, docs create, schedule create.

Closes #182

Copilot AI review requested due to automatic review settings

March 4, 2026 05:03

@jeremy

- Wrap ParseInt error in resolvePersonIDs for better diagnostics
- Add happy-path tests verifying --no-subscribe sends empty subscriptions
  array and default omits the field entirely
- Update --no-subscribe help text to "Don't subscribe anyone else" since
  the server always auto-subscribes the creator

@jeremy jeremy deleted the no-subscribers branch

March 4, 2026 05:23