reanahub / reana-client

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

cli: `format` flag not respecting order in `status` command #621

Closed BrunoRosendo closed 1 year ago

BrunoRosendo commented 2 years ago

Currently, in status command, the format flag currently does not respect the order of headers that is passed in the flag. This feature works as expected in other commands (e.g. list) but not in this one. For example:

Expected:

$ reana-client status --format run_number,name
RUN_NUMBER   NAME                   
1            reana-demo-root6-roofit

Currently:

$ go run . status --format run_number,name
 NAME                     RUN_NUMBER
 reana-demo-root6-roofit  1