aiida-core icon indicating copy to clipboard operation
aiida-core copied to clipboard

More user friendly yes/no prompt in `verdi computer delete`

Open agoscinski opened this issue 9 months ago • 5 comments

Describe the problem

Looking at the yes/no prompt of verdi computer delete

$ verdi computer delete <COMPUTER>
Report: This computer has 0 associated nodes
Report: 0 Node(s) marked for deletion
Shall I continue? [yes/N]:

Would suggest to do [y/N] or [yes/NO]. I tend for the former as it is used in Debian-based system, also I saw this used in other verdi shell prompts.

Also I would accept y,yes, n, no in both cases as valid input. Here again, my intuition comes from using a Debian-based system.

My environment

Python 3.11.0, Ubuntu 22.04

$ verdi status
 ✔ version:     AiiDA v2.5.1.post0
 ✔ config:      /home/alexgo/code/aiida-core/.aiida
 ✔ profile:     presto-1
 ✔ storage:     SqliteDosStorage[/home/alexgo/code/aiida-core/.aiida/repository/sqlite_dos_8665b32a7f4d45d3b1448d7931fd503d]: open,
 ✔ broker:      RabbitMQ v3.8.14 @ amqp://guest:[email protected]:5672?heartbeat=600
 ⏺ daemon:      The daemon is not running.

agoscinski avatar May 27 '24 10:05 agoscinski