Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions crates/vite_global_cli/src/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,11 +764,7 @@ fn delegated_help_doc(command: &str) -> Option<HelpDoc> {
),
section_lines(
"Examples",
vec![
" vp check",
" vp check --fix",
" vp check --no-type-check src/index.ts",
],
vec![" vp check", " vp check --fix", " vp check --no-lint src/index.ts"],
),
],
documentation_url: documentation_url_for_command_path(&["check"]),
Expand Down
62 changes: 62 additions & 0 deletions packages/cli/snap-tests-global/command-check-help/snap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
> vp check -h
VITE+ - The Unified Toolchain for the Web

Usage: vp check [OPTIONS] [PATHS]...

Run format, lint, and type checks.

Options:
--fix Auto-fix format and lint issues
--no-fmt Skip format check
--no-lint Skip lint check
-h, --help Print help

Examples:
vp check
vp check --fix
vp check --no-lint src/index.ts

Documentation: https://viteplus.dev/guide/check


> vp check --help
VITE+ - The Unified Toolchain for the Web

Usage: vp check [OPTIONS] [PATHS]...

Run format, lint, and type checks.

Options:
--fix Auto-fix format and lint issues
--no-fmt Skip format check
--no-lint Skip lint check
-h, --help Print help

Examples:
vp check
vp check --fix
vp check --no-lint src/index.ts

Documentation: https://viteplus.dev/guide/check


> vp help check
VITE+ - The Unified Toolchain for the Web

Usage: vp check [OPTIONS] [PATHS]...

Run format, lint, and type checks.

Options:
--fix Auto-fix format and lint issues
--no-fmt Skip format check
--no-lint Skip lint check
-h, --help Print help

Examples:
vp check
vp check --fix
vp check --no-lint src/index.ts

Documentation: https://viteplus.dev/guide/check

3 changes: 3 additions & 0 deletions packages/cli/snap-tests-global/command-check-help/steps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"commands": ["vp check -h", "vp check --help", "vp help check"]
}
Loading