Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/birchb1024/yamlok
Simple Linux program to validate YAML files
https://github.com/birchb1024/yamlok
golang yaml yaml-linter
Last synced: 2 days ago
JSON representation
Simple Linux program to validate YAML files
- Host: GitHub
- URL: https://github.com/birchb1024/yamlok
- Owner: birchb1024
- Created: 2019-06-01T06:46:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T08:41:17.000Z (over 5 years ago)
- Last Synced: 2023-03-22T18:52:44.344Z (over 1 year ago)
- Topics: golang, yaml, yaml-linter
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yamlok
Simple program to validate YAML files.
usage:
```
yamlok [-h|--help] [-e|--echo] [File...]-e Output the parsed YAML to stdout.
-echo
Output the parsed YAML to stdout.
-h Print helpful text.
-help
Print helpful text.
```yamlok takes a list of YAML files as arguments. It parses each file in turn. If an error is found,
processing stops and details are printed on stderr. If all the files are ok the process status is zero
otherwise non zero.If no input files are given yamlok reads YAML from the standard input.
If the --echo option is given, the YAML is also regenerated and sent to stdout.
yamlok uses the Go language YAML parser "gopkg.in/yaml.v3"