`destroy` sans terminal répond « Aborted. » au lieu de réclamer `--yes` comme `clean` et `reset`

Closed Beginner friendly
#354 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

A pull request for this has already been merged.

  • #356 by @stephrobert — merged

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Read _confirmer in cli/progression.py:166-182 and compare how clean and reset handle confirmation without a terminal. Trace the destroy command's confirmation path and check how it reports the missing terminal and --yes. Done when destroy shows confirmation_sans_terminal and exits with code 2 in that case.

Written by the indexing model from the issue text.

Description

bug
What happened

Lancés sans terminal (CI, script, entrée redirigée) et sans --yes,
clean et reset disent pourquoi la confirmation est impossible et
nomment --yes, puis sortent en code 2 (_confirmer,
cli/progression.py:166-182, chaîne confirmation_sans_terminal).
destroy affiche sa question puis « Aborted. » et sort en code 1, sans
raison ni mention de --yes.

Mesuré le 2026-11-09 avec 0.8.0 :

$ dsoxlab destroy < /dev/null
Détruire toute l'infrastructure du provider kvm ? Les données des VM seront perdues [y/N]: Aborted.
$ echo $?
1
Attendu

destroy passe par le même _confirmer : message
confirmation_sans_terminal, code 2.

Dominant language
Python
Stars
109
Forks
5
Avg merge
15h 30m
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stephrobert/dsoxlab

All issues in stephrobert/dsoxlab

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.