Devolutions / Devolutions/UniGetUI

[IMPROVEMENT] Option to treat &ampersand as literal in cli path arguments

Đang mở
#5,246 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
C#
Star
26.2k
Fork
927
Merge trung bình
15 giờ 6 phút
Pull request đã merge (30 ngày)
58

Mô tả

### Please confirm these before moving forward.

- [x] I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
- [x] This improvement refers to an existing feature. If you want to suggest a new feature, please use [this template](https://github.com/Devolutions/UniGetUI/issues/new?labels=new-feature&projects=&template=feature-request.yml&title=%5BFEATURE+REQUEST%5D+%28Enter+your+description+here%29).
- [x] This improvement is not a bug. If you want to report a bug, please use [this template](https://github.com/Devolutions/UniGetUI/issues/new?labels=bug&projects=&template=bug-issue.yml&title=%5BBUG%5D+%28Enter+your+description+here%29).

### Describe the improvement

(not 100% sure whether this is a bug as I don't fully understand what the relevant syntax UniGet uses in this context since I couldn't find an escape char and a similar bug was already fixed https://github.com/Devolutions/UniGetUI/issues/3904)

When passing `--location` to WinGetCli, I'd like to have an option to treat `&` ampersand char as literal so that `--location "C:\Program Files\App&Name"` will use the `App&Name` as the directory name.

(It seems that currently UniGetUI uses some syntax that doesn't allow that, though I couldn't figure out how to escape it either, which should be possible in a syntax, `""a&b`&c^&d~&e\&'&'&&""` didn't work to produce a single `&` in the command-line to run box)

### Describe how this improvement could help users

Not worrying about `&`ampersands in their paths

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ừ việc xử lý --location trong WinGetCli và so sánh cách phân tích đối số của nó với issue #3904. Xác định cách ô lệnh cần chạy hiện xử lý dấu ampersand như thế nào và định nghĩa một tùy chọn hoặc quy tắc escape để giữ lại dấu ampersand trong đường dẫn; được xem là hoàn thành khi một đường dẫn như C:\\Program Files\\App&Name đến WinGetCli mà không bị thay đổi.

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

Đánh giá

Công nghệ
csharp
Lĩnh vực
cli, operating-systems
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.