Repository navigation
feat(cmd): queue, unpublish, connect sessions, webhook deliveries and automation versions - #33
Merged
Merged
Conversation
…, versions and inbox commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
fopost queue slots list · create · update · delete,queue next,queue preview, andposts create --schedule queue(setsSchedule: fopost.ScheduleQueue; alternative to--schedule-at,--publish,--draft). There is noposts updatecommand in this CLI, so the flag lives oncreateonly.fopost posts unpublish <id>overPosts.Unpublish; confirms unless--yes, prints per-network outcome.fopost connect-sessions create · getoverConnectSessions.Create/Get(--external-user-id,--platformrepeatable,--redirect-url,--branding-name,--branding-logo-url; workspace from the root--workspace).fopost webhooks deliveries list · get · redeliveroverWebhooks.ListDeliveries/GetDelivery/Redeliver, in the existingwebhooksstyle (--status,--limiton list).fopost automations versions list · get · restoreoverAutomations.ListVersions/GetVersion/RestoreVersion.fopost analytics inboxoverAnalytics.Inbox, because the CLI already hasanalytics.Logs.Listwas not wrapped: the CLI has nologscommand (it hasactivity), so no sibling to extend.--schedule queueparagraph; CHANGELOG 0.3.0;buildinfo.Version0.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--jsonwhere 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.modis pinned to that branch head (v0.3.1-0.20261018185422-4bdeedf09a93).Owed
v0.4.0, re-pingo.modto the tag (go get github.com/fopost/[email protected] && go mod tidy) and update the pin note in CLAUDE.md.v0.3.0after that re-pin.