--force means different things in 'stop' and 'cert remove'
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 838
- Fork
- 90
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 69
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/dev-proxy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
MockStdioResponsePlugin: @stdin.body.id placeholder fails to resolve when messages arrive back-to-back after an id-less messageCó thể làm lại được @garrytrinder đã nhận 108 ngày trước và không có pull request nào đang mở. Đang mở
dotnet/dev-proxy#1757 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs peer review
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
dotnet/dev-proxy#1667 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/dev-proxy
Issue tương tự
-
area: core priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
RicoSuter/Namotion.Interceptor#863 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0.3.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] Decompression leaves metadata that makes recompression throw and corrupt the content typeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BrighterCommand/Brighter#4683 ·
Maintainer thường phản hồi trong vòng 1 ngày