reanahub / reana-client

REANA command-line client
http://reana-client.readthedocs.io/
MIT License
10 stars 46 forks source link

cli: workflow status order #106

Closed tiborsimko closed 6 years ago

tiborsimko commented 6 years ago

Currently we get:

$ reana-client workflow status
NAME       RUN_NUMBER   ID                                     USER                                   ORGANIZATION   STATUS   COMMAND                                                                                             PROGRESS
workflow   15           2889f737-51a6-499a-9562-7e8a017d0e03   00000000-0000-0000-0000-000000000000   default        failed   source fix-env.sh && source env.sh && aliroot -b -q generate.C > generation.log 2> generation.err   4/8     

It would be good to display STATUS - PROGRESS - COMMAND in this order, so that the table will be more easily readable. (I.e. display fixed-width columns first, and leave varchar-columns like command for later.)

See also #105 for musings about whether we need all the ID and USER and ORGANIZATION information being displayed by default... Better hide them and show them only when verbosity requires it.

dinosk commented 6 years ago

PR #105 changes the reana-client workflow status as described here:

$ rc workflow status
NAME       RUN_NUMBER   STATUS     PROGRESS   COMMAND                                               
workflow   16           finished   2/2        root -b -q '../code/fitdata.C("data.root","plot.png")'
$ rc workflow status -v
NAME       RUN_NUMBER   STATUS     PROGRESS   COMMAND                                                  ID                                     USER                                   ORGANIZATION
workflow   16           finished   2/2        root -b -q '../code/fitdata.C("data.root","plot.png")'   1ea9c854-ecc5-40af-a2e5-7a284a6ecac8   00000000-0000-0000-0000-000000000000   default   

the extra columns are just appended.