feat(cli): add top-level rebuild alias#1383
Conversation
✅ Deploy Preview for viteplus-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@Han5991 Thank you very much for your contribution. Could you please add the corresponding user documentation? |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Thank you for leaving a comment! Could you please review it again? |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f8a102930b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Refactor `normalize_args` to run in a loop, allowing multiple normalizations to be applied sequentially. - This fixes issues where commands like `vp help rebuild` or `vp help node` were not fully normalized to their target commands. - Update global CLI snapshot tests to reflect the new `rebuild` top-level command in help output.
|
@fengmk2 I have finished fixing the broken CI. Could you please review it one more time and return the CI? |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@fengmk2 Requesting a CI re-run. The snapshot diff was hard to catch locally — it's now been committed. |
Summary
vp rebuildalias that normalizes tovp pm rebuildWhy
rebuildcommand #1057 asks for a top-level rebuild commandvp pm rebuild, so this change exposes it without duplicating logicCloses #1057
Validation
cargo test -p vite_global_cli