Commit b9acebf
authored
refactor(cli): remove package manager commands from local cli (#341)
### TL;DR
Simplified CLI command structure by removing package manager related commands.
### What changed?
- Removed package manager related commands (`add`, `remove`, `update`, `dedupe`, `outdated`, `why`, `link`, `unlink`, and `pm`)
- Added helpful command descriptions to the remaining commands
- Simplified the `is_package_manager_command()` function to only check for the `install` command
- Updated the help text to reflect the new command structure
### How to test?
1. Run `vite -h` to verify the updated command list
2. Verify that only the core commands are available: `run`, `lint`, `fmt`, `build`, `test`, `lib`, `dev`, `doc`, `cache`, and `install`
3. Check that each command has a descriptive help text
### Why make this change?
This change streamlines the CLI interface by focusing on core functionality and removing rarely used package manager commands. This makes the CLI more approachable for new users and reduces maintenance overhead. The simplified command structure aligns better with the primary purpose of the tool while still maintaining the essential `install` command for backward compatibility.1 parent 7153ea3 commit b9acebf
13 files changed
Lines changed: 39 additions & 2701 deletions
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | 5 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 6 | | |
13 | | - | |
14 | | - | |
15 | 7 | | |
16 | | - | |
This file was deleted.
0 commit comments