Skip to content

oncilla/confex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

confex

Go Report Card go.dev reference Release license

confex helps you explore configuration files. It currently supports yaml, json, and toml configurations.

Installation

go get github.com/oncilla/confex@latest

In case you see the following error:

go: cannot use path@version syntax in GOPATH mode

run:

GO111MODULE=on go get github.com/oncilla/confex@latest

Usage

Supply any yml, json, or toml file to explore it.

confex config.json

confex also supports piped input.

echo $( curl http://headers.jsontest.com/ ) | confex

Key bindings

Basic navigation
--------------------------------------
 k,  <UP>       Move up
 j,  <Down>     Move down
 gg, <Home>     Go to top
 G,  <End>      Go to end
 e,  <Enter>    Toggle expand
 E              Expand all
 C              Collapse all

 h              Show help message
 q, <ctrl-c>    Quit


Extended navigation
--------------------------------------
 <ctrl-d>       Half page down outline
 <ctrl-u>       Half page up outline
 <ctrl-f>       Page down outline
 <ctrl-b>       Page up outline

Related Work

This project is inspired by https://github.com/gulyasm/jsonui

About

confex helps you explore configuration files

Resources

License

Stars

Watchers

Forks

Packages

No packages published