You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kosli list flows calls GET /api/v2/flows/{org} with no query parameters and renders the full array. There is no way to narrow results from the CLI, which is awkward for scripting and slower than necessary on orgs with many flows.
API capability already available
GET /flows/{org} already accepts:
search_by_name (string) — flows whose name contains the substring. Only alphanumeric characters and - are allowed.
case_sensitive (boolean, default true) — whether search_by_name is case sensitive.
These are not currently exposed by the CLI.
Proposed change
Add flags to kosli list flows, passed through as query params:
--name (string) → search_by_name (consider --search as an alias)
Wire into the request URL in cmd/kosli/listFlows.go. Response shape is unchanged (still an array), so this is additive and non-breaking.
Out of scope
Regex matching: not supported by the API (substring only). Not in scope.
Pagination / large-list latency: the flows endpoint returns the full array with no page/per_page support. Reducing latency needs a server-side change first; tracked separately. See feat: kosli list environments: add pagination and filtering flags #934 for the equivalent environments work as a pattern.
Definition of Done
--name (+ optional --search alias) and --case-sensitive flags added and wired into the request URL
kosli list flows --help documents the new flags
Integration tests cover --name match, no-match, and --case-sensitive
Docs updated if list-command flags are documented centrally
Problem
kosli list flowscallsGET /api/v2/flows/{org}with no query parameters and renders the full array. There is no way to narrow results from the CLI, which is awkward for scripting and slower than necessary on orgs with many flows.API capability already available
GET /flows/{org}already accepts:search_by_name(string) — flows whose name contains the substring. Only alphanumeric characters and-are allowed.case_sensitive(boolean, default true) — whethersearch_by_nameis case sensitive.These are not currently exposed by the CLI.
Proposed change
Add flags to
kosli list flows, passed through as query params:--name(string) →search_by_name(consider--searchas an alias)--case-sensitive(bool, default true) →case_sensitiveWire into the request URL in
cmd/kosli/listFlows.go. Response shape is unchanged (still an array), so this is additive and non-breaking.Out of scope
kosli list environments: add pagination and filtering flags #934 for the equivalent environments work as a pattern.Definition of Done
--name(+ optional--searchalias) and--case-sensitiveflags added and wired into the request URLkosli list flows --helpdocuments the new flags--namematch, no-match, and--case-sensitiveReferences
cmd/kosli/listFlows.gokosli list environments: add pagination and filtering flags #934 (same pattern forkosli list environments)