Skip to content

Commit 63ca4b4

Browse files
nurazon59fengmk2
andauthored
fix(cli): show create and migrate in local cli top-level help (#1508)
## Why `vp -h` was missing `create` and `migrate`. ## What Added both commands to the top-level help output and updated the affected CLI snapshots. ## Checks Local snap-test harness could not run because `tool` is not installed in this environment. `cargo test -p vite_global_cli --bin vp` also stopped early because the workspace references a missing `rolldown_binding` manifest in this checkout. Co-authored-by: nurazon59 <nurazon59@users.noreply.github.com> Co-authored-by: MK (fengmk2) <fengmk2@gmail.com>
1 parent e916769 commit 63ca4b4

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/cli/binding/src/cli/help.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ pub(super) fn print_help() {
181181
"{header}{bold_underline}Usage:{reset} {bold}vp{reset} <COMMAND>
182182
183183
{bold_underline}Core Commands:{reset}
184+
{bold}create{reset} Create a new project from a template
185+
{bold}migrate{reset} Migrate an existing project to Vite+
184186
{bold}dev{reset} Run the development server
185187
{bold}build{reset} Build for production
186188
{bold}test{reset} Run tests

packages/cli/snap-tests/cli-helper-message/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Usage: vp <COMMAND>
33

44
Core Commands:
5+
create Create a new project from a template
6+
migrate Migrate an existing project to Vite+
57
dev Run the development server
68
build Build for production
79
test Run tests

packages/cli/snap-tests/command-helper/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Usage: vp <COMMAND>
33

44
Core Commands:
5+
create Create a new project from a template
6+
migrate Migrate an existing project to Vite+
57
dev Run the development server
68
build Build for production
79
test Run tests

packages/cli/snap-tests/command-vp-alias/snap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Usage: vp <COMMAND>
33

44
Core Commands:
5+
create Create a new project from a template
6+
migrate Migrate an existing project to Vite+
57
dev Run the development server
68
build Build for production
79
test Run tests

0 commit comments

Comments
 (0)