Skip to content

Commit

Permalink
馃摝 NEW: CLI Help formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadawais committed May 16, 2020
1 parent a52451f commit 3439d21
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions utils/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ module.exports = meow(
${cyan(`states`)} Get data for all USA states
Options
${yellow(`--sort`)}, ${yellow(`-s`)} Sort data by type
${yellow(`--reverse`)}, ${yellow(`-r`)} Reverse print order
${yellow(`--limit`)}, ${yellow(`-l`)} Print only N entries
${yellow(`--bar`)}, ${yellow(`-b`)} Print stats in bar charts
${yellow(`--chart`)}, ${yellow(`-c`)} Print chart for a country
${yellow(`--log`)}, ${yellow(`-g`)} Print logarithmic chart
${yellow(`--xcolor`)}, ${yellow(`-x`)} Single colored output
${yellow(`--minimal`)}, ${yellow(`-m`)} Minimalistic CLI output
${yellow(`--json`)}, ${yellow(`-j`)} Output JSON only data
${yellow(`-s`)}, ${yellow(`--sort`)} Sort data by type
${yellow(`-r`)}, ${yellow(`--reverse`)} Reverse print order
${yellow(`-l`)}, ${yellow(`--limit`)} Print only N entries
${yellow(`-b`)}, ${yellow(`--bar`)} Print stats in bar charts
${yellow(`-c`)}, ${yellow(`--chart`)} Print chart for a country
${yellow(`-g`)}, ${yellow(`--log`)} Print logarithmic chart
${yellow(`-x`)}, ${yellow(`--xcolor`)} Single colored output
${yellow(`-m`)}, ${yellow(`--minimal`)} Minimalistic CLI output
${yellow(`-j`)}, ${yellow(`--json`)} Output JSON only data
Examples
${green(`corona`)} ${cyan(`china`)}
Expand Down

0 comments on commit 3439d21

Please sign in to comment.