Support external `vp-<command>` executables, as Git and Cargo do
Maintainer thường phản hồi trong vòng 1 ngày
@cpojer đang làm issue này rồi.
Từ ngày 22/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
Workspace tool authors cannot expose a command such as vp pr gen: the global
CLI rejects pr before the workspace's JavaScript implementation can run.
Today our workspace runs the same tool with vp exec vpp pr gen.
Reproduction
With an executable named vp-pr installed in the workspace's node_modules/.bin,
vp pr --help should be able to run that executable with --help. With Vite+
1.3.0 installed, the current command exits 2 with error: Command 'pr' not found.
Patching the local dist/bin.js dispatcher does not help: it is never reached.
Checked source
Inspected the official repository at commit
733b973ebe26f097ebe007cb079b2ee64b2f7217 in ~/repo-references/vite-plus:
main.rs:522
callstry_parse_args_frombefore command execution.main.rs:537
handlesInvalidSubcommandas an error/suggestion. Only the successful parse
arm reachesrun_commandat line 583.cli.rs:69
declares the closedCommandsenum. It has no external-subcommand arm.cli.rs:1298
calls clap'stry_get_matches_fromandArgs::from_arg_matches.cli.rs:1179
already routesexecthrough the managed local executable path.
Proposal
Support Git/Cargo-style external subcommands: when no built-in matches foo,
resolve vp-foo using the same managed runtime and workspace executable
resolution as vp exec, then forward the remaining argv unchanged.
Built-ins retain precedence. Unknown names still fail with the existing useful
error when no executable exists. No implicit package download or install is
needed. Preserve cwd, -C, stdout/stderr, exit status, signals, --, and platform
executable/shim behavior. A locally installed extension should be explicitly
available in the workspace, not inferred from a matching package name.
This gives workspace extensions a natural command without modifying Vite+'s
built-in command set or maintaining an unreachable JavaScript dispatch patch.
Suggested acceptance cases
vp foo a --flag -- valueexecutesvp-foowith exact argument boundaries.- Existing built-ins win over a same-name executable.
- Workspace executable resolution and
-Cbehave likevp exec. - Missing executable retains the unknown-command error; no download occurs.
- Child exit code and termination signals propagate.
- Unix executables and Windows executable shims both work.
- Ngôn ngữ chính
- Rust
- Star
- 6.5k
- Fork
- 296
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 229
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
Docker guide: the runtime stage needs libatomic1 for Node.js 25 and laterCó thể đã có người làm @kshanxs đã nhận 1 ngày trước. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
voidzero-dev/vite-plus#3219 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vp run -r executes each package task twice when the root package has a matching recursive scriptCó thể đã có người làm @wan9chi đã nhận 1 ngày trước. Đang mởpending triage
voidzero-dev/vite-plus#3221 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
voidzero-dev/vite-plus#3218 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LSP loads vite.config.ts with the server's cwd as rootCó thể đã có người làm @leaysgur đã nhận 2 ngày trước. Đang mởpending triage
voidzero-dev/vite-plus#3217 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Small glitchĐang mởpriority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
storytold/photocraft#9538 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P2 rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jscott3201/rusty-bacnet#2085 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:tag area:tag---json---markdown--n bug factory:dogfood factory:triaged persona:scripter platform:linux-cloud priority:p3 type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
gitbutlerapp/grit#1940 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inconsistent case in names for Windows installation packages compared to all other assetsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:ui bug in progress needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
bherbruck/solvecraft#6769 · 2 bình luận ·