Skip to content

Commit 36d3f89

Browse files
committed
👌 IMPROVE: Lingo
1 parent e73216b commit 36d3f89

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const spinner = ora({ text: "" });
1212
const Table = require("cli-table3");
1313
const cli = require("./utils/cli.js");
1414
const init = require("./utils/init.js");
15-
const getAll = require("./utils/getAll.js");
15+
const getCountries = require("./utils/getCountries.js");
1616
const showHelp = require("./utils/showHelp.js");
1717
const theEnd = require("./utils/theEnd.js");
1818
const handleError = require("cli-handle-error");
@@ -49,7 +49,7 @@ const sortBy = cli.flags.sort;
4949
const lastUpdated = await getWorldwide(table, states);
5050
await getCountry(spinner, table, states, country);
5151
await getStates(spinner, table, states, sortBy);
52-
await getAll(spinner, table, states, country, sortBy);
52+
await getCountries(spinner, table, states, country, sortBy);
5353

5454
theEnd(lastUpdated, states);
5555
})();
File renamed without changes.

utils/table.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const chalk = require("chalk");
22
const green = chalk.green;
33
const red = chalk.red;
4+
const yellow = chalk.yellow;
45
const dim = chalk.dim;
56

67
module.exports = {
@@ -24,7 +25,7 @@ module.exports = {
2425
`${red(`Deaths`)}`,
2526
`${red(`Deaths (today)`)}`,
2627
`${green(`Recovered`)}`,
27-
`Active`,
28+
`${yellow(`Active`)}`,
2829
`${red(`Critical`)}`,
2930
`Per Million`
3031
],
@@ -44,7 +45,7 @@ module.exports = {
4445
`Cases ${dim(`(today)`)}`,
4546
`${red(`Deaths`)}`,
4647
`${red(`Deaths (today)`)}`,
47-
`Active`
48+
`${yellow(`Active`)}`
4849
],
4950
style: { head: ["cyan"] },
5051
sortingKeys: {

0 commit comments

Comments
 (0)