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

`--help` does not say what happens without `--yes` outside a terminal

Đang mở Phù hợp với người mới
#786 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 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
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

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ả

documentation

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 on main.
  • 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

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 ROCm/rocm-cli

Tất cả issue của ROCm/rocm-cli

Issue tương tự

Thêm issue về Rust

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.