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

supabase / cli / 31174771352
65%

Build:
DEFAULT BRANCH: develop
Ran 07 Aug 2026 11:38AM 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

07 Aug 2026 11:29AM UTC coverage: 64.699% (-0.005%) from 64.704%
31174771352

push

github

web-flow
feat(cli): port shell completion to native TypeScript (CLI-1965) (#6083)

## What changed

Replaces the Go-binary passthrough for shell tab-completion with two
native TypeScript implementations, closing
[CLI-1965](https://linear.app/supabase/issue/CLI-1965/port-shell-completion-to-typescript-and-remove-the-complete):

1. **Static scripts**
(`legacy/commands/completion/legacy-completion-scripts.ts`) — `supabase
completion {bash,zsh,fish,powershell}` now generates the script natively
instead of proxying to the Go binary. Cobra v1.10.2's completion scripts
turned out to be 100% generic templates that don't bake in the command
tree at all (every tab press just shells back out to `supabase
__complete`/`__completeNoDesc`), so this is a byte-for-byte
transcription of cobra's own
`genBashComp`/`genZshComp`/`genFishComp`/`genPowerShellComp` functions,
parameterized only by the program name (`"supabase"`) and which hidden
command the script calls back into. Pinned against real cobra output via
8 checked-in golden fixtures
(`legacy/commands/completion/__fixtures__/`) generated from a real
`apps/cli-go` build, so a future accidental edit to the hand-transcribed
templates fails CI instead of shipping silently.

2. **Dynamic responder** (`legacy/cli/legacy-complete.ts`, replacing the
deleted `complete-passthrough.ts`) — reimplements cobra's
`__complete`/`__completeNoDesc` protocol (candidates + a trailing
`:<directive>` line) by reflecting over the live `legacyRoot` command
tree, rather than hand-authoring a separate Go-shaped shadow model or
continuing to shell out to the Go binary. Reflecting over the real tree
means completion output self-corrects as the tree's own,
separately-tracked content bugs (extra/missing commands, description
mismatches) get fixed elsewhere.

This removes the completion command family's last dependency on the
bundled Go binary — the structural blocker the milestone description
calls out, since every `cmd/*.go` command *registration* was
... (continued)

10447 of 16147 relevant lines covered (64.7%)

10.78 hits per line

Coverage Regressions

Lines Coverage ∆ File
11
13.6
0.7% cmd/root.go
Jobs
ID Job ID Ran Files Coverage
1 31174771352.1 07 Aug 2026 11:38AM UTC 229
64.7
GitHub Action Run
Source Files on build 31174771352
  • Tree
  • List 229
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31174771352
  • 412d570c on github
  • Prev Build on gh-readonly-queue/develop/pr-6109-8df0bbd19c9f70c288dec05f628d76a293cc8043 (#31160022945)
  • Next Build on develop (#31197552621)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc