Commit 1333406
authored
feat(global-cli): add
Implements a self-uninstall command that:
- Removes ~/.vite-plus/ directory
- Cleans shell profiles (.zshenv, .zshrc, .bashrc, .bash_profile,
.profile, config.fish) by removing Vite+ sourcing lines
- On Windows, removes .vite-plus\\bin from User PATH and handles
locked binary via deferred cmd.exe deletion
- Requires typing "uninstall" to confirm (or --yes/-y to skip)
Adds CI verification in test-standalone-install.yml for all platforms
(Unix + Windows) that tests implode followed by reinstall.
closes VP-236
vp implode command to completely uninstall vite-plus (#761)1 parent 58b2307 commit 1333406
10 files changed
Lines changed: 765 additions & 25 deletions
File tree
- .github/workflows
- crates/vite_global_cli
- src
- commands
- packages/cli
- snap-tests-global/cli-helper-message
- src/config/__tests__
- rfcs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
521 | 565 | | |
522 | 566 | | |
523 | 567 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
682 | 689 | | |
683 | 690 | | |
684 | 691 | | |
| |||
1965 | 1972 | | |
1966 | 1973 | | |
1967 | 1974 | | |
| 1975 | + | |
1968 | 1976 | | |
1969 | 1977 | | |
1970 | 1978 | | |
| |||
0 commit comments