diff --git a/src/api.ts b/src/api.ts index 1057cb4..8dd1803 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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` ) ); diff --git a/src/cli.ts b/src/cli.ts index ca953e4..b608747 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -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 @@ -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 () => { diff --git a/src/utils/generateOutput.ts b/src/utils/generateOutput.ts index e384bc9..fb2ef69 100644 --- a/src/utils/generateOutput.ts +++ b/src/utils/generateOutput.ts @@ -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); @@ -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"); diff --git a/src/utils/generatePlainOutput.ts b/src/utils/generatePlainOutput.ts index 945ec2b..cb4b4c2 100644 --- a/src/utils/generatePlainOutput.ts +++ b/src/utils/generatePlainOutput.ts @@ -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();