Skip to content

Commit 40134f4

Browse files
author
Waren Gonzaga
committed
Merge from Dev
2 parents debbde9 + 02d51a8 commit 40134f4

File tree

4 files changed

+38
-10
lines changed

4 files changed

+38
-10
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,35 @@ This simple application offers you the following features...
3838

3939
_More features coming soon..._
4040

41-
## Usage
41+
## Basic Usage
42+
43+
### Global Tracking
4244

4345
To track COVID-19 cases on CLI globally, all you need to do is to use CURL or WGET command.
4446

47+
#### CURL
48+
4549
```bash
4650
curl https://covid19tracker.xyz
4751
```
4852

49-
or
53+
#### WGET
5054

5155
```bash
5256
wget -i https://covid19tracker.xyz && cat index.html
5357
```
5458

55-
To track COVID-19 cases on CLI by country, all you need to do is to add country name or code after ```/```.
59+
### Country Tracking
60+
61+
To track COVID-19 cases on CLI by country, all you need to do is to append the URL with the country name or country [ISO 3166-1](https://warengonza.ga/iso-3166-1-codes) code.
62+
63+
#### Country Name
5664

5765
```bash
5866
curl https://covid19tracker.xyz/philippines
5967
```
6068

61-
or
69+
#### Country ISO 3166-1 Code
6270

6371
```bash
6472
curl https://covid19tracker.xyz/ph

lib/cli/index.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,28 @@ exports.help = () => {
8383
COVID-19 Tracker CLI v${pkg.version} by Waren Gonzaga
8484
${line}
8585
86-
/country or /code ......... by country query
87-
ex. /philippines or /ph
86+
/<country name> ................... by country stats
87+
ex. /philippines /korea
88+
/<ISO 3166-1 code> ................ by country stats shortcut
89+
ex. /ph /kor
8890
89-
/cmd ...................... if using CMD
91+
/cmd .............................. if using CMD
92+
/cmd/<country name> ............... by country stats on CMD
93+
/cmd/<ISO 3166-1 code> ............ by country stats shortcut on CMD
9094
91-
/plain or /basic .......... if your cli does not support ansi encoding
95+
/plain or /basic .................. if your cli does not support ANSI encoding
96+
similar to /cmd usage and layout
97+
ex. /plain/philippines or /plain/ph
98+
/basic/philippines or /basic/ph
9299
100+
To learn more about the usage... please visit
101+
https://warengonza.ga/covid19-tracker-cli
102+
103+
ISO 3166-1 Code List:
104+
https://warengonza.ga/iso-3166-1-codes
105+
106+
${line}
107+
${repo}
93108
${line}
94109
95110
"${randomSay()}"

lib/sayings/threads.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@
1818
"Uninstall 2020, virus detected!",
1919
"Always wear a mask when you go outside.",
2020
"Watch news to keep updated!",
21-
"Support the developer, buy him a coffee!"
21+
"Support the developer, buy him a coffee!",
22+
"Green apple is better than vitamins!",
23+
"Health is wealth...",
24+
"Happiness is the highest form of health",
25+
"Keep calm and carry on...",
26+
"Better to be busy than to be busy worrying"
2227
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "covid19-tracker-cli",
3-
"version": "2.5.0",
3+
"version": "2.5.2",
44
"description": "Track COVID-19 cases from command line interface",
55
"main": "app.js",
66
"scripts": {

0 commit comments

Comments
 (0)