Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

--force means different things in 'stop' and 'cert remove'

Đang mở
#1,928 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
cli

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:

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/dev-proxy

Tất cả issue của dotnet/dev-proxy

Issue tương tự

Thêm issue về C#

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.