aiidateam / aiida-core

The official repository for the AiiDA code
https://aiida-core.readthedocs.io
Other
431 stars 187 forks source link

`verdi process <SUBCOMMAND>` shows no output #6391

Closed agoscinski closed 3 months ago

agoscinski commented 4 months ago

Describe the bug / Expected behavior

$ verdi process show

There should be some information for the use that the process id is missing. Even more for watch it starts to run which I find strange as no id was specified.

Error: Missing argument 'CODE'.

I would stick to the style of `verdi code show` everywhere, seems to me more informative and the same style is also used in `verdi computer <SUBCOMMAND>`.
That means subcommands `kill`, `pause`, `play`

### Your environment

- Operating system: Ubuntu 22.04 LTS
- Python version: 3.11

$ verdi status ✔ version: AiiDA v2.5.1 ✔ config: /home/alexgo/code/aiida-core/.aiida ✔ profile: alexgo ✔ storage: SqliteDosStorage[/home/alexgo/code/aiida-core/.aiida/repository/sqlite_dos_f275ff0f10174e8e84c13e82dd5ba452]: open, ✔ rabbitmq: Connected to RabbitMQ v3.8.14 as amqp://guest:guest@127.0.0.1:5672?heartbeat=600

sphuber commented 4 months ago

Fair enough. These commands function in this way because they allow multiple processes to be specified. It simply loops over those, with the result that nothing happens if no processes are specified. Should be easy enough to simply error out if no processes are defined whatsoever.