Update gold usage in README

This commit is contained in:
Christian Muehlhaeuser 2019-11-22 04:51:44 +01:00
commit 08b62ec55e

View file

@ -4,12 +4,23 @@ Render markdown on the CLI, with _pizzazz_!
## Usage
Supply a JSON stylesheet with the `-s` flag. Use a markdown file as the argument.
Supply a JSON stylesheet with the `-s` flag. Use a markdown source as the argument.
Read from file:
```
./gold -s dark.json README.md
```
Read from stdin:
```
./gold -s dark.json -
```
Fetch README from GitHub:
```
./gold -s dark.json https://github.com/charmbracelet/gold
```
## Colors
Currently `gold` uses the [Aurora ANSI colors](https://godoc.org/github.com/logrusorgru/aurora#Index).