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

https://github.com/sgrankin/yamlfmt


https://github.com/sgrankin/yamlfmt

formatter go golang yaml yamlfmt

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# yamlfmt

Barebones comment-preserving YAML formatting via https://github.com/go-yaml/yaml.

## Install:
```
; go install sgrankin.dev/yamlfmt@latest
```

## Use:
```
; yamlfmt # Read stdin.
; yamlfmt *.yaml # Read files and output them as separate docs.
; yamlfmt -indent=3 # Set the indent.
```