Repository navigation
Add completion spec: Vite+ (vp) - #427
Conversation
Adds a completion spec for the vp CLI covering its subcommands and options, with generators for vp run tasks (bare and package#task forms) and --filter workspace packages, both driven by vp run --json. Package management commands reuse the existing dependency and npm registry search generators. Closes warpdotdev#284 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @krishs0404 on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment |
|
@cla-bot check |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @krishs0404 on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
Closes #284.
Adds a completion spec for
vp(Vite+, v1.6.0).Spec (
json/vp.json)create,migrate,dev,build,test(with itsrun/watch/dev/related/bench/listsubcommands),lint,fmt/format,check,pack,run,exec,preview,cache,config,hooks,staged,toolchain, and the package-manager commandsinstall/i,add,remove/rm/uninstall,update/up,dedupe,outdated,why/explain,link/ln,unlink,dlx,info/view, andpmwith its subcommands.vp <command> --helpoutput, not from docs.upgradeandenvare not included. They only exist in the globalvpCLI and error out in the local one.Generators (
src/generators/vp.rs)vp_tasks_generator(vp run): runspwd -P; vp run --jsonand suggestspackage#taskfor every task in the workspace, plus the bare task name for tasks of the package the user is currently in.vp_workspace_packages_generator(--filter,exec --resume-from): suggests workspace package names from the samevp run --jsonoutput.dependencies_generatoris reused forremove,update,outdatedandwhy.add,install,dlxandinfo. It is nowpub(super)innpm.rssovp.rscan use it.Validation
script/presubmitpasses: JSON formatting,cargo fmt, Clippy with warnings denied, and 182 tests (0 failures), including the checks that every spec deserializes and every referenced generator name exists.avsa-extra), and empty/invalid output.Manual UI verification
Verified in a locally rebuilt Warp on macOS with the local PR checkout and the WGPU renderer. The test workspace contains a root package and two workspace packages; testing was performed from
packages/awith Vite+ 1.6.0 on PATH.vp run <Tab>: task dropdown includes qualified workspace tasks and the current package's bare task names.vp run --filter <Tab>: dropdown includes@m/a,@m/b, androot.vp add rea<Tab>: dropdown shows live npm registry search results.vp remove <Tab>: dropdown includesis-oddandleft-pad.vp run b<Tab>completes tovp run build.No tasks or package changes were executed during UI verification. Local build overrides remain uncommitted.
Task dropdown
Workspace packages
npm registry search
Installed dependencies
Task completion accepted
🤖 Generated with Claude Code