https://github.com/martinlindhe/validyaml
Command line tool to validate YAML syntax of input file.
https://github.com/martinlindhe/validyaml
command-line-tool yaml-validator
Last synced: 10 months ago
JSON representation
Command line tool to validate YAML syntax of input file.
- Host: GitHub
- URL: https://github.com/martinlindhe/validyaml
- Owner: martinlindhe
- License: mit
- Created: 2015-12-30T18:52:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T17:55:31.000Z (over 3 years ago)
- Last Synced: 2025-03-25T15:11:07.340Z (about 1 year ago)
- Topics: command-line-tool, yaml-validator
- Language: Go
- Homepage:
- Size: 196 KB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
Command line tool to validate and pretty-print YAML syntax of input
files.
## Installation
Windows and macOS binaries are available under [Releases](https://github.com/martinlindhe/validyaml/releases)
Or install from source:
go get -u github.com/martinlindhe/validyaml
## Usage
Exit code will be 0 if file is good.
$ validyaml file.yaml
OK: file.yaml
$ curl http://site.com/file.yaml | validyaml
OK: -
## Pretty-print
$ validyaml -p file.yaml
list:
one: 1
two: 2
## License
Under [MIT](LICENSE)