Skip to content

feat: add designs, fonts and video-edits commands - #38

Merged
alihesari merged 5 commits into
mainfrom
feature/create-suite
Nov 20, 2026
Merged

alihesari merged 5 commits into
mainfrom
feature/create-suite

Conversation

@alihesari

Copy link
Copy Markdown
Member

What changed

  • fopost designs list · get · create · duplicate · export · delete over client.Designs. create takes --kind, --name, --brand-voice-id and an optional --document-file (- for stdin); export takes --format, repeatable --page and --duration; delete confirms unless --yes.
  • fopost fonts list · upload · delete over client.Fonts. upload <file> takes --family, --weight, --style; delete confirms unless --yes.
  • fopost video-edits ops · create · get (alias video-edit) over client.VideoEdits. create --media <id> takes --op name or --op 'name={json params}' (repeatable, run in order) or --operations-file. --wait on create and get polls (--poll-interval, default 3s) until the job succeeds or fails; a failed job exits 1 with the error on stderr and nothing on stdout.
  • Every command supports --json. README command list and CHANGELOG updated.

What was tested

go vet, gofmt -l, and go test -race ./... pass locally against the fopost-go feature/create-suite branch through a local go.mod replace (not committed). New offline tests cover the request bodies, --json, delete confirmation, the multipart font upload, and --wait polling to success and to a failed job.

What is owed

  • Needs the fopost-go release with the Designs, Fonts and VideoEdits services and a go.mod bump to it. Until then CI cannot build this branch, which is why it is a draft.
  • Merge after fopost/fopost#1523 is deployed.

@alihesari
alihesari marked this pull request as ready for review November 20, 2026 22:37
@alihesari
alihesari merged commit b410974 into main Nov 20, 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