dguest / pandamonium

Command line scripts to parse panda web api
BSD 3-Clause "New" or "Revised" License
27 stars 17 forks source link

Add --human option to CLI API #52

Open matthewfeickert opened 3 years ago

matthewfeickert commented 3 years ago

To make things like the Danny Antrim option more digestable it might be worth adding a --human or --header flag option to the CLI API that would print human readable column headers above the relevant output.

So something like (with the correct formatting)

$ pandamon user.feickert --days 100 --more-info --human | head -n 6
status      taskid    reqid     % fin  % failed taskname
done        23224391  14645     100%   0%     user.feickert.364712.Pythia8EvtGen_A14NNPDF23LO_jetjet_JZ12WithSW.e7142_s3126_r10724_p4128._2020-11-17_01-00/ 
done        23224390  14638     100%   0%     user.feickert.364711.Pythia8EvtGen_A14NNPDF23LO_jetjet_JZ11WithSW.e7142_s3126_r10724_p4128._2020-11-17_01-00/ 
done        23224388  14637     100%   0%     user.feickert.364710.Pythia8EvtGen_A14NNPDF23LO_jetjet_JZ10WithSW.e7142_s3126_r10724_p4128._2020-11-17_01-00/ 
done        23224387  14636     100%   0%     user.feickert.364709.Pythia8EvtGen_A14NNPDF23LO_jetjet_JZ9WithSW.e7142_s3126_r10724_p4128._2020-11-17_01-00/ 
done        23224386  14635     100%   0%     user.feickert.364708.Pythia8EvtGen_A14NNPDF23LO_jetjet_JZ8WithSW.e7142_s3126_r10724_p4128._2020-11-17_01-00/
dguest commented 3 years ago

Good idea.