feat(list flows): add pagination support#982
Conversation
Bring `kosli list flows` in line with `kosli list trails`/`list artifacts` by adding `--page` and `--page-limit` flags (issue #978). - embed shared listOptions, wire addListFlags and validate() - always send page/per_page; sending per_page switches the endpoint to the {data, pagination} envelope response - parse the envelope and print a "Showing page X of Y, total Z items" footer; include the page number in the empty-result message - move the `--name` shorthand from `-n` to `-N` so it no longer clashes with `--page-limit`'s `-n` (the family-wide convention) Note: `--output json` now returns the {data, pagination} envelope instead of a plain array, matching `list trails`.
|
Claude finished @mbevc1's task in 1m 53s —— View job Review —
|
Bring
kosli list flowsin line withkosli list trails/list artifactsby adding--pageand--page-limitflags (issue #978).--nameshorthand from-nto-Nso it no longer clashes with--page-limit's-n(the family-wide convention)Note: default preserves existing behaviour.
Closes #978