An open API service indexing awesome lists of open source software.

https://github.com/borkdude/puget-cli

A CLI version of puget
https://github.com/borkdude/puget-cli

Last synced: 9 months ago
JSON representation

A CLI version of puget

Awesome Lists containing this project

README

          

# Puget CLI

The `puget` CLI can be used to pprint EDN values with colors. It is based on the
[puget](https://github.com/greglook/puget) library.

## Installation

### Brew (linux and macOS)

brew install borkdude/brew/puget

### Scoop (Windows)

See [scoop-clojure](https://github.com/littleli/scoop-clojure).

### Manual

Grab the binary for your OS at [Github releases](https://github.com/borkdude/puget-cli/releases).

## Usage

Pipe EDN to stdin. Provide options to `puget.printer/pprint` using `--opts`.

E.g.:

``` shell
$ echo '[1 2 3]' | puget
```

This will invoke `puget.printer/pprint`. By default it uses colorized output which you can disable with:

``` shell
$ echo '[1 2 3]' | puget --opts '{:print-color false}'
```

## License

Copyright © 2020 Michiel Borkent

Distributed under the EPL License, same as Clojure. See LICENSE.