Skip to content

martinlindhe/validyaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Command line tool to validate and pretty-print YAML syntax of input files.

Installation

Windows and macOS binaries are available under 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