ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). To chat: https://twitter.com/MrAhmadAwais/
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

DEV: Added multiple countries view #104

Open Shivathanu opened 4 years ago

Shivathanu commented 4 years ago

Description:

Added option to view multiple countries data in table / chart format.

Instructions:

Multiple countries are input to the cli as below format in order for the data retreival of multiple countries.

Run command:

corona --s country india,ecuador,portugal

Fixes #54

Shivathanu commented 4 years ago

Thanks Luke for taking time to comment on the issue changes, have addressed your comments separately below each one of them.

rsubtil commented 3 years ago

When it is run in minimal/-m mode, it shows duplicated content:

$ corona-cli portugal,spain -m              

 #   Country     Cases        Cases (today)   Deaths      Deaths (today)   Recovered    Active       Critical   Per Million 
 →   Worldwide   42,847,157   383,248         1,153,216   4,503            31,602,038   10,091,903   76,918     5,497       
 —                                                                                                                          

 #   Country     Cases        Cases (today)   Deaths      Deaths (today)   Recovered    Active       Critical   Per Million 
 →   Worldwide   42,847,157   383,248         1,153,216   4,503            31,602,038   10,091,903   76,918     5,497       
 —                                                                                                                          
 —   Portugal    116,109      3,669           2,297       21               67,842       45,970       221        11,397      
 —   Spain       1,110,372    0               34,752      0                0            1,075,620    2,031      23,746