Skip to content

feat(cmd): queue, unpublish, connect sessions, webhook deliveries and automation versions - #33

Merged
alihesari merged 10 commits into
mainfrom
feature/sdk-gaps
Oct 18, 2026
Merged

alihesari merged 10 commits into
mainfrom
feature/sdk-gaps

Conversation

@alihesari

@alihesari alihesari commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

What changed

  • fopost queue slots list · create · update · delete, queue next, queue preview, and posts create --schedule queue (sets Schedule: fopost.ScheduleQueue; alternative to --schedule-at, --publish, --draft). There is no posts update command in this CLI, so the flag lives on create only.
  • fopost posts unpublish <id> over Posts.Unpublish; confirms unless --yes, prints per-network outcome.
  • fopost connect-sessions create · get over ConnectSessions.Create/Get (--external-user-id, --platform repeatable, --redirect-url, --branding-name, --branding-logo-url; workspace from the root --workspace).
  • fopost webhooks deliveries list · get · redeliver over Webhooks.ListDeliveries/GetDelivery/Redeliver, in the existing webhooks style (--status, --limit on list).
  • fopost automations versions list · get · restore over Automations.ListVersions/GetVersion/RestoreVersion.
  • fopost analytics inbox over Analytics.Inbox, because the CLI already has analytics. Logs.List was not wrapped: the CLI has no logs command (it has activity), so no sibling to extend.
  • README command table and a --schedule queue paragraph; CHANGELOG 0.3.0; buildinfo.Version 0.3.0 (minor bump, adding commands).

Tests

One httptest-backed test per family (queue_test.go, posts_unpublish_test.go, connect_sessions_test.go, webhooks_test.go, automations_test.go, analytics_inbox_test.go), each asserting the verb, path, query or body the CLI sends and what it prints, plus --json where a command prints a synthetic acknowledgement.

gofmt -l . && go build ./... && go vet ./... && go test -race ./... all pass.

Depends on

fopost/fopost-go#38 being merged and tagged. go.mod is pinned to that branch head (v0.3.1-0.20261018185422-4bdeedf09a93).

Owed

  • Once fopost-go#38 is merged and tagged v0.4.0, re-pin go.mod to the tag (go get github.com/fopost/[email protected] && go mod tidy) and update the pin note in CLAUDE.md.
  • Tag v0.3.0 after that re-pin.

@alihesari
alihesari merged commit ba42468 into main Oct 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant