• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 28586024696
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-5622-5a0e4a9383482808007fb6c1261b79157ee5ff5b
DEFAULT BRANCH: develop
Ran 02 Jul 2026 11:21AM UTC
Jobs 1
Files 229
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jul 2026 11:18AM UTC coverage: 65.019%. Remained the same
28586024696

push

github

web-flow
fix(cli): CSV-split sso and postgres-config StringSlice flags (#5764)

## Current Behavior

Go registers `sso add/update --domains/--add-domains/--remove-domains`
and `postgres-config update/delete --config` as pflag `StringSliceVar`,
which CSV-splits each occurrence (via `encoding/csv`) and accumulates
across repeats. The legacy TS port only supported flag repetition
(`Flag.atLeast(0)`), so a single comma-separated value like `--domains
a.com,b.com` produced one malformed string (`"a.com,b.com"`) instead of
two domains — sent to the API as-is, or (for `postgres-config`) failing
the `key=value` split validation.

Fixes #CLI-1853

## Expected Behavior

`--domains a.com,b.com` (and `--config foo=bar,baz=qux`) now CSV-split
per-occurrence and accumulate across repeats, matching Go's
`pflag.StringSliceVar`/`encoding/csv` semantics exactly — including
quoted-comma handling (`'"a,b",c'` → `["a,b", "c"]`) and Go's
`csv.Reader` malformed-input error messages.

The CSV-parsing algorithm already existed for `--schema` flags (`gen
types`, `db lint`, `db dump`, `db pull`, `db diff`, `db schema
{generate,sync}`) in `legacy-schema-flags.ts`. This extracts the generic
algorithm into a new shared `legacy-string-slice-flag.ts` module
(`legacyParseStringSliceFlag`) so the four newly-fixed flags reuse it
instead of duplicating it; `legacy-schema-flags.ts` now delegates to the
shared module while keeping its schema-specific CSV re-encoder
(`legacySchemaToCsvField`) untouched.

Out of scope: the ticket's "bonus" item (aligning `sso update`'s domains
mutex error message with cobra's group-error template) is deferred — it
depends on the separate functions-mutex-template fix (CLI-1860), which
hasn't landed yet.

CLOSES CLI-1853

11007 of 16929 relevant lines covered (65.02%)

10.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28586024696.1 02 Jul 2026 11:21AM UTC 229
65.02
GitHub Action Run
Source Files on build 28586024696
  • Tree
  • List 229
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28586024696
  • 957566df on github
  • Prev Build on gh-readonly-queue/develop/pr-5756-2060d72c4c58d0bf530f91d05d1d4b732e6b2e4c (#28580324904)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc