https://github.com/sgrankin/yamlfmt
https://github.com/sgrankin/yamlfmt
formatter go golang yaml yamlfmt
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sgrankin/yamlfmt
- Owner: sgrankin
- License: mit
- Created: 2021-09-25T20:07:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-25T20:35:18.000Z (over 4 years ago)
- Last Synced: 2025-03-28T00:46:03.874Z (about 1 year ago)
- Topics: formatter, go, golang, yaml, yamlfmt
- Language: Go
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```