--force means different things in 'stop' and 'cert remove'
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
Direzione di ricerca
Start by reading DevProxy/Commands/StopCommand.cs and DevProxy/Commands/CertCommand.cs to compare how each command defines and handles --force. Check the stop command's tests and nearby CLI option tests to see how its behavior is verified. Decide how to introduce a distinct kill option while preserving the deprecated alias, and update the tests to cover both; done means --force consistently skips safety checks and the stop behavior remains available under the new option.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
The --force / -f option means different things in different commands:
| Command | Meaning of --force |
|---|---|
devproxy cert remove --force |
Don't prompt for confirmation |
devproxy stop --force |
Kill the process instead of stopping gracefully |
Code:
- https://github.com/dotnet/dev-proxy/blob/d0965ec56873af0d86488f6b907b89a62fb9a22e/DevProxy/Commands/CertCommand.cs#L16-L19
- https://github.com/dotnet/dev-proxy/blob/d0965ec56873af0d86488f6b907b89a62fb9a22e/DevProxy/Commands/StopCommand.cs#L14-L17
Most CLIs use --force to mean "skip confirmation or safety checks", which matches cert remove. For terminating a process, tools typically use a separate verb or option (for example docker kill vs docker stop, or kill -9).
Expected behavior
--force has one meaning across Dev Proxy commands. Consider renaming the stop option (for example --kill), keeping --force as a deprecated alias for a transition period.
- Lingua principale
- C#
- Stelle
- 838
- Fork
- 90
- Merge medio
- 2g 6h
- PR unite (30g)
- 69
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dotnet/dev-proxy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
MockStdioResponsePlugin: @stdin.body.id placeholder fails to resolve when messages arrive back-to-back after an id-less messageForse di nuovo libera @garrytrinder l’ha presa 108 giorni fa e non c’è nessuna pull request aperta. Aperta
dotnet/dev-proxy#1757 · 1 reazione · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
needs peer review
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
dotnet/dev-proxy#1667 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di dotnet/dev-proxy
Issue simili
-
Add 'upm' tag on githubAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug mac アプリ: コード アプリ: チャット 優先: 中 要トリアージ
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
yksr-melt/Meltype#1346 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Collect corrected translations in the app, with no GitHub account and the least possible frictionApertalocalization medium ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
hexide-io/HexIDE#2819 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100