diff --git a/README.md b/README.md index 87642cd..f170120 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Or download [pre-built binary](https://github.com/antonmedv/fx/releases). ## Usage +Start the interactive viewer via: + ```bash $ fx data.json ``` @@ -30,6 +32,8 @@ Or $ curl ... | fx ``` +Type `?` to see full list of key shortcuts. + ### Reducers ```bash @@ -44,37 +48,20 @@ file. $ fx data.json 'groupBy("commit.committer.name")' 'mapValues(_.size)' ``` -Update JSON using spread operator. +## Documentation -```bash -$ echo '{"count": 0}' | fx '{...this, count: 1}' -{ - "count": 1 -} -``` -Extract values from maps. +See full [documentation](https://github.com/antonmedv/fx/blob/master/DOCS.md). -```bash -$ fx commits.json | fx .[].commit.author -``` +## Themes -Pretty print. +Theme can be configured by setting environment variable `FX_THEME` from `1` to `9`: ```bash -$ curl ... | fx . +export FX_THEME=9 ``` -## Documentation - -See full [documentation](https://github.com/antonmedv/fx/blob/master/DOCS.md). - -## Themes - -| `FX_THEME=1` ![](docs/images/1.png) | `FX_THEME=2` ![](docs/images/2.png) | `FX_THEME=3` ![](docs/images/3.png) | -|:-----------------------------------:|:-----------------------------------:|:-----------------------------------:| -| `FX_THEME=4` ![](docs/images/4.png) | `FX_THEME=5` ![](docs/images/5.png) | `FX_THEME=6` ![](docs/images/6.png) | -| `FX_THEME=7` ![](docs/images/7.png) | `FX_THEME=8` ![](docs/images/8.png) | `FX_THEME=9` ![](docs/images/9.png) | +themes ## License diff --git a/docs/images/1.png b/docs/images/1.png deleted file mode 100644 index 0a6a6e0..0000000 Binary files a/docs/images/1.png and /dev/null differ diff --git a/docs/images/2.png b/docs/images/2.png deleted file mode 100644 index c3edc6a..0000000 Binary files a/docs/images/2.png and /dev/null differ diff --git a/docs/images/3.png b/docs/images/3.png deleted file mode 100644 index c95b658..0000000 Binary files a/docs/images/3.png and /dev/null differ diff --git a/docs/images/4.png b/docs/images/4.png deleted file mode 100644 index e94bdcf..0000000 Binary files a/docs/images/4.png and /dev/null differ diff --git a/docs/images/5.png b/docs/images/5.png deleted file mode 100644 index 8bdcdd9..0000000 Binary files a/docs/images/5.png and /dev/null differ diff --git a/docs/images/6.png b/docs/images/6.png deleted file mode 100644 index d3fd9c6..0000000 Binary files a/docs/images/6.png and /dev/null differ diff --git a/docs/images/7.png b/docs/images/7.png deleted file mode 100644 index a92881a..0000000 Binary files a/docs/images/7.png and /dev/null differ diff --git a/docs/images/8.png b/docs/images/8.png deleted file mode 100644 index 162a5a5..0000000 Binary files a/docs/images/8.png and /dev/null differ diff --git a/docs/images/9.png b/docs/images/9.png deleted file mode 100644 index 96ccbd6..0000000 Binary files a/docs/images/9.png and /dev/null differ diff --git a/docs/images/themes.png b/docs/images/themes.png new file mode 100644 index 0000000..fdc9614 Binary files /dev/null and b/docs/images/themes.png differ