Display data for specific countries in one command
First of all thank you for this project, it's very useful and easy to use :)
I think this addition would be really nice, it's a way to display data for specific countries separated by '-'. For example:
corona italy-spain
or
corona us-uk-italy-spain
This way we can compare data from selected countries in the same table.
Glad you like my work. This is a fantastic idea. Something I have been thinking about.
Some countries have - in their names. So maybe we should use a different separator. Let's say _? Thoughts?
This fixes #15.
@ahmadawais you are right, it looks like there can be a country with - in the name. And & (which would be nice) will not work either because it's recognized as next command.
So yes, _ is a good candidate. I was also thinking about / but this looks a bit odd, it implies it's a directory path :)
Thanks for the PR. Can you please update the PR in light of the latest release.
🔗 https://github.com/ahmadawais/corona-cli/releases/tag/3.4.0 🔗 https://www.npmjs.com/package/corona-cli
@ahmadawais you are right, it looks like there can be a country with
-in the name. And&(which would be nice) will not work either because it's recognized as next command.So yes,
_is a good candidate. I was also thinking about/but this looks a bit odd, it implies it's a directory path :)
What about comma? Like: usa,italy,spain
Aha , would be perfect!
Can you update this PR with , as the separator and use the new route where you can just define a list of countries?
https://corona.lmao.ninja/countries/us,italy,spain
@ahmadawais , added as a separator. It looks and works better then other symbols, thanks @fayazmiraz :)
@ahmadawais
,added as a separator. It looks and works better then other symbols, thanks @fayazmiraz :)
Great, thank you :)