forked from Archives/fx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73bf2d97cd | 2 years ago | |
---|---|---|
docs/images | 2 years ago | |
pkg | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
help.go | 2 years ago | |
keymap.go | 2 years ago | |
main.go | 2 years ago | |
print.go | 2 years ago | |
search.go | 2 years ago | |
search_test.go | 2 years ago | |
util.go | 2 years ago | |
util_test.go | 2 years ago | |
version.go | 2 years ago | |
viewport.go | 2 years ago |
README.md
fx
* Function eXecution
Install
go install github.com/antonmedv/fx@latest
Or via Homebrew
TODO
Or download pre-built binary.
Usage
Start the interactive viewer via:
$ fx data.json
Or
$ curl ... | fx
Type ?
to see full list of key shortcuts.
Reducers
$ fx data.json '.filter(x => x.startsWith("a"))'
Access all lodash (or ramda, etc) methods by using .fxrc file.
$ fx data.json 'groupBy("commit.committer.name")' 'mapValues(_.size)'
Documentation
See full documentation.
Themes
Theme can be configured by setting environment variable FX_THEME
from 1
to 9
:
export FX_THEME=9