mirror of
https://github.com/larksuite/cli.git
synced 2026-08-03 08:32:46 +08:00
PaginateToOutput had 11 positional parameters (writers, callbacks, pagination knobs), which read poorly at the call sites and invited positional-argument mistakes. Introduce PaginateOutputOptions and reduce the signature to (ctx, opts). The two production call sites (cmd/api, cmd/service) now pass named fields; the pagination tests use a small adapter so each case stays one statement. No behavior change.