Skip to content

feat(cli): complete test commands and options from Vitest metadata - #3190

Draft
RSS1102 wants to merge 2 commits into
voidzero-dev:mainfrom
RSS1102:feat/vitest-cli-completion
Draft

RSS1102 wants to merge 2 commits into
voidzero-dev:mainfrom
RSS1102:feat/vitest-cli-completion

Conversation

@RSS1102

@RSS1102 RSS1102 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Related to #2953.

Generate completion metadata at build time by read-only traversal of the public CAC fields returned by vitest/node.createCLI(), following the Vitest discussion. The global Rust CLI reads the packaged metadata to complete vp test commands and option names without starting Node.js, loading project configuration, or triggering installation.

Completion follows the selected local Vite+ package and falls back to the existing behavior when metadata is missing, unsupported, or mismatched. Option values and test execution compatibility are outside this first draft.

@RSS1102
RSS1102 force-pushed the feat/vitest-cli-completion branch from 67aab9c to fb794e5 Compare October 24, 2026 21:17

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.

1 participant