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
- Host: GitHub
- URL: https://github.com/lusingander/geezer
- Owner: lusingander
- License: mit
- Created: 2022-10-29T08:05:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T09:21:27.000Z (9 months ago)
- Last Synced: 2025-01-16T16:23:47.129Z (9 months ago)
- Topics: format, indentation, parentheses
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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