├── .gitignore ├── .travis.yml ├── AUTHORS ├── COPYING ├── ChangeLog ├── Dockerfile ├── Makefile.am ├── NEWS ├── README ├── README.md ├── base64.c ├── base64.h ├── configure.ac ├── debian ├── changelog ├── compat ├── control ├── copyright ├── dirs ├── docs ├── jo.manpages ├── rules └── source │ └── format ├── jo.1 ├── jo.bash ├── jo.c ├── jo.md ├── jo.pandoc ├── jo.zsh ├── json.c ├── json.h ├── meson.build ├── press.md ├── rpm-build └── jo.spec ├── snapcraft.yaml └── tests ├── jo-creator.txt ├── jo-large1.json ├── jo-large2.json ├── jo-logo.png ├── jo.01.exp ├── jo.01.sh ├── jo.02.exp ├── jo.02.sh ├── jo.03.exp ├── jo.03.sh ├── jo.04.exp ├── jo.04.sh ├── jo.05.exp ├── jo.05.sh ├── jo.06.exp ├── jo.06.sh ├── jo.07.sh.in ├── jo.08.exp ├── jo.08.sh ├── jo.09.exp ├── jo.09.sh ├── jo.10.exp ├── jo.10.sh ├── jo.11.exp ├── jo.11.sh ├── jo.12.exp ├── jo.12.sh ├── jo.13.exp ├── jo.13.sh ├── jo.14.exp ├── jo.14.sh ├── jo.15.exp ├── jo.15.sh ├── jo.16.exp ├── jo.16.sh ├── jo.17.exp ├── jo.17.sh ├── jo.18.exp ├── jo.18.sh ├── jo.19.exp ├── jo.19.sh ├── jo.20.exp ├── jo.20.sh ├── jo.21.exp ├── jo.21.sh ├── jo.22.exp ├── jo.22.sh ├── jo.23.exp ├── jo.23.sh ├── jo.24.exp ├── jo.24.sh ├── jo.25.exp ├── jo.25.sh ├── jo.26.exp ├── jo.26.sh ├── jo.27.exp ├── jo.27.sh └── jo.test /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/.travis.yml -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/AUTHORS -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/COPYING -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/ChangeLog -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/Makefile.am -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | README.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/README.md -------------------------------------------------------------------------------- /base64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/base64.c -------------------------------------------------------------------------------- /base64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/base64.h -------------------------------------------------------------------------------- /configure.ac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/configure.ac -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/debian/changelog -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/debian/control -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/debian/copyright -------------------------------------------------------------------------------- /debian/dirs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/debian/dirs -------------------------------------------------------------------------------- /debian/docs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debian/jo.manpages: -------------------------------------------------------------------------------- 1 | jo.1 2 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/debian/rules -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /jo.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/jo.1 -------------------------------------------------------------------------------- /jo.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/jo.bash -------------------------------------------------------------------------------- /jo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/jo.c -------------------------------------------------------------------------------- /jo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/jo.md -------------------------------------------------------------------------------- /jo.pandoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/jo.pandoc -------------------------------------------------------------------------------- /jo.zsh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/jo.zsh -------------------------------------------------------------------------------- /json.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/json.c -------------------------------------------------------------------------------- /json.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/json.h -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/meson.build -------------------------------------------------------------------------------- /press.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/press.md -------------------------------------------------------------------------------- /rpm-build/jo.spec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/rpm-build/jo.spec -------------------------------------------------------------------------------- /snapcraft.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/snapcraft.yaml -------------------------------------------------------------------------------- /tests/jo-creator.txt: -------------------------------------------------------------------------------- 1 | Jan-Piet Mens 2 | -------------------------------------------------------------------------------- /tests/jo-large1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo-large1.json -------------------------------------------------------------------------------- /tests/jo-large2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo-large2.json -------------------------------------------------------------------------------- /tests/jo-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo-logo.png -------------------------------------------------------------------------------- /tests/jo.01.exp: -------------------------------------------------------------------------------- 1 | ["jo"] 2 | -------------------------------------------------------------------------------- /tests/jo.01.sh: -------------------------------------------------------------------------------- 1 | # basic logo 2 | ${JO:-jo} -a jo 3 | -------------------------------------------------------------------------------- /tests/jo.02.exp: -------------------------------------------------------------------------------- 1 | ["jo"] 2 | -------------------------------------------------------------------------------- /tests/jo.02.sh: -------------------------------------------------------------------------------- 1 | # basic logo (stdin) 2 | echo jo | ${JO:-jo} -a 3 | -------------------------------------------------------------------------------- /tests/jo.03.exp: -------------------------------------------------------------------------------- 1 | {"pass":true,"type":"text"} 2 | -------------------------------------------------------------------------------- /tests/jo.03.sh: -------------------------------------------------------------------------------- 1 | # basic two values 2 | ${JO:-jo} pass=true type=text 3 | -------------------------------------------------------------------------------- /tests/jo.04.exp: -------------------------------------------------------------------------------- 1 | {"name":"Jane Jolie","data":{"age":null,"country":"ES"}} 2 | -------------------------------------------------------------------------------- /tests/jo.04.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.04.sh -------------------------------------------------------------------------------- /tests/jo.05.exp: -------------------------------------------------------------------------------- 1 | {"a":[1,2],"geo":{"lat":111,"lon":222}} 2 | -------------------------------------------------------------------------------- /tests/jo.05.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.05.sh -------------------------------------------------------------------------------- /tests/jo.06.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.06.exp -------------------------------------------------------------------------------- /tests/jo.06.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.06.sh -------------------------------------------------------------------------------- /tests/jo.07.sh.in: -------------------------------------------------------------------------------- 1 | # version check 2 | [ "$(${JO:-jo} -v)" = "jo @PACKAGE_VERSION@" ] 3 | -------------------------------------------------------------------------------- /tests/jo.08.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.08.exp -------------------------------------------------------------------------------- /tests/jo.08.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.08.sh -------------------------------------------------------------------------------- /tests/jo.09.exp: -------------------------------------------------------------------------------- 1 | {"program":"jo","authors":"SmFuLVBpZXQgTWVucyA8anBtZW5zQGdtYWlsLmNvbT4K"} 2 | -------------------------------------------------------------------------------- /tests/jo.09.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.09.sh -------------------------------------------------------------------------------- /tests/jo.10.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.10.exp -------------------------------------------------------------------------------- /tests/jo.10.sh: -------------------------------------------------------------------------------- 1 | # array: simple 2 | ${JO:-jo} -a spring summer autumn winter 3 | -------------------------------------------------------------------------------- /tests/jo.11.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.11.exp -------------------------------------------------------------------------------- /tests/jo.11.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.11.sh -------------------------------------------------------------------------------- /tests/jo.12.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.12.exp -------------------------------------------------------------------------------- /tests/jo.12.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.12.sh -------------------------------------------------------------------------------- /tests/jo.13.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.13.exp -------------------------------------------------------------------------------- /tests/jo.13.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.13.sh -------------------------------------------------------------------------------- /tests/jo.14.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.14.exp -------------------------------------------------------------------------------- /tests/jo.14.sh: -------------------------------------------------------------------------------- 1 | # values: with equals signs in them 2 | ${JO:-jo} form==ok this===sure 3 | -------------------------------------------------------------------------------- /tests/jo.15.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.15.exp -------------------------------------------------------------------------------- /tests/jo.15.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.15.sh -------------------------------------------------------------------------------- /tests/jo.16.exp: -------------------------------------------------------------------------------- 1 | {"msg":"\"All's Well\", she said."} 2 | -------------------------------------------------------------------------------- /tests/jo.16.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.16.sh -------------------------------------------------------------------------------- /tests/jo.17.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.17.exp -------------------------------------------------------------------------------- /tests/jo.17.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.17.sh -------------------------------------------------------------------------------- /tests/jo.18.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.18.exp -------------------------------------------------------------------------------- /tests/jo.18.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.18.sh -------------------------------------------------------------------------------- /tests/jo.19.exp: -------------------------------------------------------------------------------- 1 | {"foo":["hello world"]} 2 | -------------------------------------------------------------------------------- /tests/jo.19.sh: -------------------------------------------------------------------------------- 1 | # read from pipe 2 | 3 | echo '["hello world"]' | ${JO:-jo} foo:=- 4 | -------------------------------------------------------------------------------- /tests/jo.20.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.20.exp -------------------------------------------------------------------------------- /tests/jo.20.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.20.sh -------------------------------------------------------------------------------- /tests/jo.21.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.21.exp -------------------------------------------------------------------------------- /tests/jo.21.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.21.sh -------------------------------------------------------------------------------- /tests/jo.22.exp: -------------------------------------------------------------------------------- 1 | {"key":"@timestamp"} 2 | -------------------------------------------------------------------------------- /tests/jo.22.sh: -------------------------------------------------------------------------------- 1 | # avoid reading from file if escaped \@ 2 | 3 | ${JO:-jo} key="\@timestamp" 4 | 5 | -------------------------------------------------------------------------------- /tests/jo.23.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.23.exp -------------------------------------------------------------------------------- /tests/jo.23.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.23.sh -------------------------------------------------------------------------------- /tests/jo.24.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.24.exp -------------------------------------------------------------------------------- /tests/jo.24.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.24.sh -------------------------------------------------------------------------------- /tests/jo.25.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.25.exp -------------------------------------------------------------------------------- /tests/jo.25.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.25.sh -------------------------------------------------------------------------------- /tests/jo.26.exp: -------------------------------------------------------------------------------- 1 | {"file":"stdin","jo":true} 2 | -------------------------------------------------------------------------------- /tests/jo.26.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.26.sh -------------------------------------------------------------------------------- /tests/jo.27.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.27.exp -------------------------------------------------------------------------------- /tests/jo.27.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.27.sh -------------------------------------------------------------------------------- /tests/jo.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jpmens/jo/HEAD/tests/jo.test --------------------------------------------------------------------------------