Commit baa6060
committed
refactor: split cli.rs into focused submodules
Break the 1,314-line cli.rs into a cli/ directory with 6 files:
- types.rs: all structs, enums, and type aliases
- resolver.rs: SubcommandResolver and cache/env helpers
- handler.rs: VitePlusCommandHandler and VitePlusConfigLoader
- execution.rs: resolve_and_execute command variants
- help.rs: CLI help, error formatting, vitest arg helpers, and tests
- mod.rs: module declarations, re-exports, and entry points
Tightens visibility where possible (pub(super), pub(crate)) following
the patterns established in the check/ and exec/ modules.1 parent 1cb2833 commit baa6060
File tree
7 files changed
+1377
-1314
lines changed- packages/cli/binding/src
- cli
7 files changed
+1377
-1314
lines changed
0 commit comments