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

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.

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)