`--help` does not say what happens without `--yes` outside a terminal
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Bắt đầu với các định nghĩa --help cho uninstall, fix, engines install, install driver, runtimes activate và runtimes rollback, sau đó so sánh cách chúng hiển thị lời nhắc với nội dung hiện có của install sdk. Issue yêu cầu văn bản trợ giúp nêu rõ điều gì xảy ra khi không có --yes và stdin không phải là terminal, cũng như câu trả lời mặc định của [y/N]. Hành vi lúc chạy của một số lệnh vẫn chưa được kiểm tra. Hoàn tất khi mỗi lệnh được liệt kê đều mô tả chính xác cả hai điểm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current behavior
Only install sdk documents what happens without --yes when there is no terminal ("required outside an interactive terminal whenever a managed runtime is already the active default"). The other commands that prompt do not say whether they refuse, hang, or assume an answer, and none states the default answer to its [y/N] prompt.
For uninstall the help says only "Do not ask for interactive confirmation". The actual behavior without a terminal is a refusal after the plan is printed:
$ rocm uninstall --keep-binaries </dev/null
Uninstall review
...
Error: uninstall requires --yes outside an interactive terminal
$ echo $?
1
For fix, engines install, install driver, runtimes activate and runtimes rollback the help is equally silent; their runtime behavior off a terminal was not checked.
Expected behavior
Each command whose --yes skips a prompt says, in its help, what happens when stdin is not a terminal and --yes is absent, and what the default answer is. The install sdk wording is a good template.
Additional context
Related: #780 (code-level dedupe of the refusal guard), which does not touch the help text.
Your environment
- rocm-cli version:
rocm-cli 0.1.0, built from the #782 branch (910b1d8). That branch only refactors the[y/N]prompt helper (#769) without changing its logic; not re-run onmain. - Platform: WSL2 (Linux 6.18)
- Ngôn ngữ chính
- Rust
- Star
- 49
- Fork
- 14
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 183
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 ROCm/rocm-cli
-
bug installation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ 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 2 ngày
-
bug documentation
Độ 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 2 ngày
-
Deduplicate the `--yes`/non-interactive-terminal refusal guard (three near-identical copies)Đang mởenhancement ux-opportunities
Độ 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 2 ngày
-
enhancement ux-opportunities
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của ROCm/rocm-cli
Issue tương tự
-
bug duplicate enhancement priority: low ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
storytold/pdfcraft#5594 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue help wanted
Độ 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 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
open-jarvis/OpenJarvis#1212 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
CakeRepository/agentshangout#38 ·
Maintainer thường phản hồi trong vòng 1 ngày