Skip to content

Commit 0edb8c8

Browse files
author
Waren Gonzaga
committed
Add advance setup
1 parent b03520b commit 0edb8c8

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ To track COVID-19 cases on CLI globally, all you need to do is to use CURL or WG
7272
#### CURL
7373

7474
```bash
75-
curl https://covid19.trackercli.com
75+
curl -L covid19.trackercli.com
7676
```
7777

7878
#### WGET
@@ -96,31 +96,31 @@ To track COVID-19 cases on CLI by country, all you need to do is to append the U
9696

9797
```bash
9898
# example usage
99-
curl https://covid19.trackercli.com/philippines
99+
curl -L covid19.trackercli.com/philippines
100100
```
101101

102102
#### Country ISO 3166-1 Code
103103

104104
```bash
105105
# /ph or /phl is ISO 3166 code of the Philippines
106-
curl https://covid19.trackercli.com/ph
106+
curl -L covid19.trackercli.com/ph
107107
```
108108

109109
#### Country with History Chart
110110

111111
```bash
112112
# shows result with history chart
113-
curl https://covid19.trackercli.com/history/ph
113+
curl -L covid19.trackercli.com/history/ph
114114
```
115115

116116
```bash
117117
# shows by default a history chart
118-
curl https://covid19.trackercli.com/history/ph/cases
118+
curl -L covid19.trackercli.com/history/ph/cases
119119
```
120120

121121
```bash
122122
# shows result with history chart
123-
curl https://covid19.trackercli.com/history/ph/deaths
123+
curl -L covid19.trackercli.com/history/ph/deaths
124124
```
125125

126126
## Advance Usage
@@ -129,7 +129,10 @@ curl https://covid19.trackercli.com/history/ph/deaths
129129

130130
```bash
131131
# check update every 10 seconds (where -n 10 is the interval)
132-
watch -n 10 curl https://covid19.trackercli.com
132+
watch -n 10 "curl -L covid19.trackercli.com"
133+
134+
# for more advance setup (where -s is to suppress curl's progress bar)
135+
watch -c -n 600 "curl -s -L covid19.trackercli.com/<country>"
133136
```
134137

135138
### Create a Shortcut Command

0 commit comments

Comments
 (0)