Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#786 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Inizia dalle definizioni di --help per uninstall, fix, engines install, install driver, runtimes activate e runtimes rollback, poi confronta il loro comportamento dei prompt con il testo esistente di install sdk. L’issue chiede che il testo della guida indichi cosa accade senza --yes quando stdin non è un terminale e quale sia la risposta predefinita [y/N]. Il comportamento in esecuzione di diversi comandi non è ancora stato verificato. Il lavoro è completato quando ogni comando elencato documenta accuratamente entrambi i punti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)
Lingua principale
Rust
Stelle
49
Fork
14
Merge medio
3g 6h
PR unite (30g)
183

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ROCm/rocm-cli

Tutte le issue di ROCm/rocm-cli

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.