Devolutions / Devolutions/UniGetUI

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

Aperta
#5,246 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
C#
Stelle
26.1k
Fork
924
Merge medio
15h 52m
PR unite (30g)
52

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start at the --location handling for WinGetCli and compare its argument parsing with issue #3904. Determine how the command-line-to-run box currently treats ampersands and define an option or escaping rule that preserves an ampersand in a path; done means a path such as C:\Program Files\App&Name reaches WinGetCli unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
cli, operating-systems
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.