Commit fc3b773
feat: tweak short aliases: remove ddp, hide un/uninstall from help (#577)
- [x] Remove `ddp` alias from `dedupe` command (no longer works)
- [x] Keep `un` and `uninstall` as visible aliases on `remove` (per
reviewer feedback)
- [x] Update custom help text to reflect alias changes
- [x] Update snap tests that use `vp ddp` to use `vp dedupe`
- [x] Update snap.txt files to reflect new help output
- [x] Remove `ddp` references from RFC documentation
- [x] Code review passed
- [x] Security check passed (no alerts)
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Tweak short alias</issue_title>
> <issue_description>> That said, I think we should support a few very
common aliases like vp i - this is mostly to cater to established habits
from users with existing package managers and ease migration. But only
the common ones. i, rm, ln, ls and up should be enough (this aligns with
pnpm). We should get rid of ddp for sure.
> > side note: pnpm supports uninstall and un but doesn't list it in its
help. We can probably do that too.</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes #576
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/voidzero-dev/vite-plus/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.
Co-authored-by: Yunfei He <i.heyunfei@gmail.com>1 parent 3262bda commit fc3b773
11 files changed
Lines changed: 12 additions & 23 deletions
File tree
- crates/vite_global_cli/src
- packages
- cli/snap-tests-todo/exit-non-zero-on-cmd-not-exists
- global/snap-tests
- cli-helper-message
- command-dedupe-npm10
- command-dedupe-pnpm10
- command-dedupe-yarn4
- rfcs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | 314 | | |
316 | 315 | | |
317 | 316 | | |
| |||
1617 | 1616 | | |
1618 | 1617 | | |
1619 | 1618 | | |
1620 | | - | |
| 1619 | + | |
1621 | 1620 | | |
1622 | 1621 | | |
1623 | 1622 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | | - | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
| |||
97 | 94 | | |
98 | 95 | | |
99 | 96 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
| |||
164 | 157 | | |
165 | 158 | | |
166 | 159 | | |
167 | | - | |
| 160 | + | |
168 | 161 | | |
169 | 162 | | |
170 | 163 | | |
| |||
662 | 655 | | |
663 | 656 | | |
664 | 657 | | |
665 | | - | |
666 | | - | |
667 | 658 | | |
668 | 659 | | |
669 | 660 | | |
| |||
677 | 668 | | |
678 | 669 | | |
679 | 670 | | |
680 | | - | |
681 | 671 | | |
682 | 672 | | |
683 | 673 | | |
| |||
0 commit comments