GitHub - borkdude/puget-cli: A CLI version of puget (original) (raw)
Puget CLI
The puget
CLI can be used to pprint EDN values with colors. It is based on thepuget library.
Installation
Brew (linux and macOS)
brew install borkdude/brew/puget
Scoop (Windows)
See scoop-clojure.
Manual
Grab the binary for your OS at Github releases.
Usage
Pipe EDN to stdin. Provide options to puget.printer/pprint
using --opts
.
E.g.:
This will invoke puget.printer/pprint
. By default it uses colorized output which you can disable with:
$ echo '[1 2 3]' | puget --opts '{:print-color false}'
License
Copyright © 2020 Michiel Borkent
Distributed under the EPL License, same as Clojure. See LICENSE.