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

https://github.com/lusingander/geezer

Command line application to format data containing parentheses
https://github.com/lusingander/geezer

format indentation parentheses

Last synced: 7 months ago
JSON representation

Command line application to format data containing parentheses

Awesome Lists containing this project

README

          

# geezer

Command line application to format data containing parentheses

## Installation

`$ go install github.com/lusingander/geezer@latest`

## Usage

```sh
$ echo "Foo(bar=Bar(baz={n=1,m=2},qux=Qux(name=qqq,value=[1,2,3])))" | geezer
Foo(
bar = Bar(
baz = {
n = 1,
m = 2
},
qux = Qux(
name = qqq,
value = [
1,
2,
3
]
)
)
)
```

### Options

```
-n int
indent width (default 2)
-s string
characters with spaces before and after (default "=")
```

For exapmle:

```
$ echo "foo:{bar:{n:1,m:2}}" | go run main.go -n 1 -s ":"
foo : {
bar : {
n : 1,
m : 2
}
}
```

## License

MIT