Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
guptarohit committed Jun 28, 2018
1 parent 5b044d9 commit 4463b43
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.rst
Expand Up @@ -73,18 +73,27 @@ Running this example would render the following graph:
4.00 ┤╭╯ │╭╯ ││││
3.00 ┼╯ ││ ││││
2.00 ┤ ╰╯ ╰╯╰╯

..

Command line interface
----------------------

This package also brings a small utility for command line usage. Assuming
`$GOPATH/bin` is in yout `$PATH`, simply `go get` it, and feed it data
points via stdin:
``$GOPATH/bin`` is in your ``$PATH``, simply ``go get`` it then install CLI.

CLI Installation
^^^^^^^^^^^^^^^^

::

go install github.com/guptarohit/asciigraph/cmd/asciigraph

Feed it data points via stdin:

::

$ go install github.com/guptarohit/asciigraph/cmd/asciigraph
$ seq 1 72 | asciigraph -h 10 -c "plot data from stdin"
72.00 ┼
65.55 ┤ ╭────
Expand All @@ -99,6 +108,7 @@ points via stdin:
7.45 ┤ ╭──────╯
1.00 ┼──╯
plot data from stdin

..

Expand Down

0 comments on commit 4463b43

Please sign in to comment.