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
- Host: GitHub
- URL: https://github.com/borkdude/puget-cli
- Owner: borkdude
- License: epl-1.0
- Created: 2020-10-23T13:47:33.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-06T10:20:45.000Z (about 5 years ago)
- Last Synced: 2025-03-30T17:51:12.703Z (10 months ago)
- Language: Shell
- Size: 21.5 KB
- Stars: 39
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.