Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command line interface #7

Closed
wants to merge 1 commit into from
Closed

Add command line interface #7

wants to merge 1 commit into from

Conversation

jez
Copy link

@jez jez commented Jan 9, 2018

I wrote a simple command line wrapper for the core functionality.
It's especially useful for visualizing data from sources like
foo | sort | uniq -c.

Usage:
  bars [--width <n>] [--bar <char>] [--sort]

Input format:

  <count> <key>

  Provide data on stdin.
  Leading, trailing, or extra spaces in the middle are ignored.

Options:
  --width <n>   Restrict chart to <n> characters. [default: 60]
  --bar <char>  Use <char> to draw the bars. [default: #]
  --sort        Sort the list in descending order

Example:
  bars --width 40 --bar █ --sort < my-data.txt

Thanks building this! It's exactly what I was looking for.

Usage:
  bars [--width <n>] [--bar <char>] [--sort]

Input format:

  <count> <key>

  Provide data on stdin.
  Leading, trailing, or extra spaces in the middle are ignored.

Options:
  --width <n>   Restrict chart to <n> characters. [default: 60]
  --bar <char>  Use <char> to draw the bars. [default: #]
  --sort        Sort the list in descending order

Example:
  bars --width 40 --bar █ --sort < my-data.txt
@jez jez closed this Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant