reanahub / reana-client

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

cli: replace `workspaces` command with `info` #570

Closed mvidalgarcia closed 2 years ago

mvidalgarcia commented 2 years ago

The new info command just reads the response from the server-side and prints it as title:value items. This way, the endpoint can be easily extended to include more info with no changes in the client needed.

closes #568 closes #567

Supersedes https://github.com/reanahub/reana-client/pull/569

TODO:

codecov-commenter commented 2 years ago

Codecov Report

Merging #570 (ab94fba) into master (3624b59) will increase coverage by 0.88%. The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #570      +/-   ##
==========================================
+ Coverage   58.19%   59.07%   +0.88%     
==========================================
  Files          20       20              
  Lines        2399     2419      +20     
==========================================
+ Hits         1396     1429      +33     
+ Misses       1003      990      -13     
Impacted Files Coverage Δ
reana_client/cli/ping.py 61.11% <40.00%> (-4.11%) :arrow_down:
reana_client/api/client.py 45.01% <100.00%> (+1.02%) :arrow_up:
reana_client/cli/utils.py 71.26% <100.00%> (+0.50%) :arrow_up:
reana_client/cli/workflow.py 63.65% <100.00%> (+0.68%) :arrow_up:
reana_client/utils.py 74.74% <100.00%> (+6.70%) :arrow_up:
reana_client/version.py 100.00% <100.00%> (ø)