Skip to content

feat(cli): add PowerShell completions - #2238

Open
Shreyasshukla957 wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
Shreyasshukla957:fix/powershell-completions-2177
Open

Shreyasshukla957 wants to merge 2 commits into
UsefulSoftwareCo:mainfrom
Shreyasshukla957:fix/powershell-completions-2177

Conversation

@Shreyasshukla957

Copy link
Copy Markdown

Summary

Adds native PowerShell completion generation for the v2 \�xecutor\ CLI. The registered completer derives subcommands, flags, and flag choices from contextual CLI help so it stays aligned with the installed command tree.

Linked issue

Fixes #2177

Verification

  • \�un run format:check\ (repository baseline fails on Windows because of line-ending checks across existing files)
  • \�un run lint`n- [x] \�un run typecheck`n- [ ] \�un run test\ (root script uses POSIX parameter expansion that PowerShell does not expand; the equivalent Turbo run reaches five existing Windows-only CLI failures)
  • \�un run --cwd apps/cli test -- powershell-completions.test.ts`n- [x] Generated script parsed and registered in \pwsh\ using \Register-ArgumentCompleter.
  • e2e: not applicable. This is generated CLI shell integration; interactive completion needs validation from an installed CLI session.

Checklist

  • This change needs no changeset.
  • Added tests for the new behavior.
  • No secrets, credentials, or private data in the diff.

@Shreyasshukla957
Shreyasshukla957 marked this pull request as ready for review October 9, 2026 14:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2] Add PowerShell (pwsh) shell completions

1 participant