Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.use("/", errorHandler);
// Not found handler
app.use("*", (_req, res) =>
res.status(404).send(
`Welcome to COVID-19 Tracker CLI v${version} by Waren Gonzaga with Wareneutron Developers\n
`Welcome to COVID-19 Tracker & CLI v${version} by Waren Gonzaga with Wareneutron Developers\n
Please visit: https://warengonza.ga/covid19-tracker-cli\n`
)
);
Expand Down
9 changes: 7 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const country = args._[0];

const { version } = require("../package.json");

const helpMessage = `COVID-19 Tracker CLI v${version} by Waren Gonzaga with Wareneutron Developers
const helpMessage = `COVID-19 Tracker & CLI v${version} by Waren Gonzaga with Wareneutron Developers
Usage: covid [COUNTRY] [OPTIONS...]

Country: Can be a country name or ISO 3166-1 alpha-2 country code
Expand All @@ -29,7 +29,12 @@ Options:
--history Show a chart of country's cases of world's cases
--mode Use with --history to make show a chart of cases, deaths, or recovered
--quiet Only show necessary information
--plain Enable plain mode`;
--plain Enable plain mode

Useful Links:
Docs: docs.wareneutron.com/covid19-tracker-cli
Repo: repo.wareneutron.com/covid19-tracker-cli
Donate: wareneutron.com/donate`;

let output: string = "";
const main = async () => {
Expand Down
6 changes: 3 additions & 3 deletions src/utils/generateOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const generateOutput: (
quiet?: boolean
) => string = (chartType, updateTime, data, quiet) => {
quiet = quiet === undefined ? true : quiet;
let header = `COVID-19 Tracker CLI v${version} - ${chartType}`;
let header = `COVID-19 Tracker & CLI v${version} - ${chartType}`;
let timestamp = getTimestamp(updateTime).yellow;

data.unshift(timestamp);
Expand All @@ -28,8 +28,8 @@ export const generateOutput: (
if (!quiet)
data = data.concat([
"Help: Try to append the URL with /help to learn more...",
"Source: https://disease.sh/v3/covid-19/",
"Code: https://github.com/wareneutron/covid19-tracker-cli",
"Docs: docs.wareneutron.com/covid19-tracker-cli",
"Repo: repo.wareneutron.com/covid19-tracker-cli",
]);

let response = generateColorTable(data, "cyan");
Expand Down
2 changes: 1 addition & 1 deletion src/utils/generatePlainOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const generatePlainOutput: (
let line = extraRows === undefined ? "-".repeat(60) : "-".repeat(68);
line += "\n";

let header = `COVID-19 Tracker CLI v${version} - ${chartType}`;
let header = `COVID-19 Tracker & CLI v${version} - ${chartType}`;
let timestamp = getTimestamp(metainfo.updated as number);
let saying = getSaying();

Expand Down