Skip to content

Commit 47aeaed

Browse files
committed
👌 IMPROVE: Formatting & Exmaples
1 parent 8de7d68 commit 47aeaed

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

utils/cli.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,23 @@ module.exports = meow(
1010
${green(`corona`)} ${cyan(`<command>`)} ${yellow(`[--option]`)}
1111
1212
Commands
13-
${cyan(`country-name`)} Get data for a given country
14-
${cyan(`states`)} Get data for all USA states
13+
${cyan(`country-name`)} Get data for a given country
14+
${cyan(`states`)} Get data for all USA states
1515
1616
Options
17-
${yellow(`--sort`)}, ${yellow(`-s`)} Sort data by type
18-
${yellow(`--reverse`)}, ${yellow(`-r`)} Reverse print order
19-
${yellow(`--limit`)}, ${yellow(`-l`)} Print only N entries
20-
${yellow(`--chart`)}, ${yellow(`-c`)} Print chart for a country
21-
${yellow(`--log`)}, ${yellow(`-g`)} Print logarithmic chart
22-
${yellow('--bar')},${yellow('-b')} Print bar chart of cases per country
23-
${yellow(`--xcolor`)}, ${yellow(`-x`)} Single colored output
24-
${yellow(`--minimal`)}, ${yellow(`-m`)} Minimalistic CLI output
17+
${yellow(`--sort`)}, ${yellow(`-s`)} Sort data by type
18+
${yellow(`--reverse`)}, ${yellow(`-r`)} Reverse print order
19+
${yellow(`--limit`)}, ${yellow(`-l`)} Print only N entries
20+
${yellow(`--bar`)}, ${yellow(`-b`)} Print stats in bar charts
21+
${yellow(`--chart`)}, ${yellow(`-c`)} Print chart for a country
22+
${yellow(`--log`)}, ${yellow(`-g`)} Print logarithmic chart
23+
${yellow(`--xcolor`)}, ${yellow(`-x`)} Single colored output
24+
${yellow(`--minimal`)}, ${yellow(`-m`)} Minimalistic CLI output
2525
2626
Examples
2727
${green(`corona`)} ${cyan(`china`)}
2828
${green(`corona`)} ${cyan(`states`)}
29+
${green(`corona`)} ${yellow(`--bar`)}
2930
${green(`corona`)} ${cyan(`china`)} ${yellow(`--chart`)}
3031
${green(`corona`)} ${cyan(`china`)} ${yellow(`--chart`)} ${yellow(`--log`)}
3132
${green(`corona`)} ${yellow(`--sort`)} ${cyan(`cases-today`)}

0 commit comments

Comments
 (0)