Skip to content

Commit 4b10a9c

Browse files
author
Waren Gonzaga
committed
Improve help and fix sayings
1 parent 1a89360 commit 4b10a9c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

lib/cli/index.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
const color = require('ansi-styles'),
44
table3 = require('cli-table3'),
55
chart = require('./chart'),
6-
pkg = require('../../package.json'), // package.json info
7-
say = require('../sayings/threads.json') // sayings
6+
pkg = require('../../package.json'), // package.json info
7+
say = require('../sayings/threads.json'); // sayings
88

99
// ansi colors
1010
const
@@ -89,6 +89,8 @@ exports.help = () => {
8989
COVID-19 Tracker CLI v${pkg.version} by Waren Gonzaga
9090
${line}
9191
92+
Basic Usage:
93+
9294
/<country name> ................... by country stats
9395
ex. /philippines /korea
9496
/<ISO 3166-1 code> ................ by country stats shortcut
@@ -103,12 +105,15 @@ exports.help = () => {
103105
ex. /plain/philippines or /plain/ph
104106
/basic/philippines or /basic/ph
105107
108+
${line}
109+
110+
ANSI Supported Features
111+
106112
/history/<country name> ........... historical chart for cases of a country
107113
ex. /history/philippines /history/korea
108114
/history/<ISO 3166-1 code> ........ shortcut historical chart for cases of a country
109115
ex. /history/ph /history/kor
110116
111-
Usage:
112117
Cases and Deaths is currently available for historical chart.
113118
114119
/history/ph/cases or /history/ph/deaths

lib/sayings/threads.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"Don't worry be happy!",
2929
"We are not going to die... stay healthy!",
3030
"Natural foods is better than vitamins...",
31-
"Let food be thy medicine and medicine be thy food \n- Hippocrates",
32-
"Healthy citizens are the greatest asset any country can have \n- Winston S. Churchill",
33-
"Wine is the most healthful and most hygienic of beverages \n- Louis Pasteur"
31+
"Let food be thy medicine and medicine be thy food - Hippocrates",
32+
"Healthy citizens are the greatest asset any country can have - Winston S. Churchill",
33+
"Wine is the most healthful and most hygienic of beverages - Louis Pasteur"
3434
]

0 commit comments

Comments
 (0)