voidzero-dev / voidzero-dev/vite-plus

Add download progress display to `vp upgrade`

Đang mở
#2,587 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
pending triage
Ngôn ngữ chính
Rust
Star
5.8k
Fork
262
Merge trung bình
23 giờ 18 phút
Pull request đã merge (30 ngày)
139

Mô tả

### Description

Unlike installing package managers and runtimes, `vp upgrade` does not display a download progress in the terminal. so in slow wi-fi, it seems freeze.

### Suggested solution

add download progress like runtime installer.

### Alternative

_No response_

### Additional context

current log:
```
> vp upgrade
info: checking for updates...
info: found vite-plus@0.3.0 (current: 0.2.9)
info: downloading vite-plus@0.3.0 for win32-x64-msvc...
info: installing...

✓ Updated vite-plus from 0.2.9 → 0.3.0

Release notes: https://github.com/voidzero-dev/vite-plus/releases/tag/v0.3.0
```

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu từ lệnh `vp upgrade` và so sánh luồng tải xuống của lệnh này với trình cài đặt runtime, vốn đã hiển thị tiến trình. Theo dõi log cập nhật hiện có từ bước kiểm tra các bản cập nhật cho đến khi tải xuống và cài đặt. Hoàn thành khi một lượt tải xuống chậm hiển thị rõ tiến trình trong terminal mà không thay đổi hành vi nâng cấp cuối cùng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.