Yaml notes
From raju
validate yaml in python
To check if a file is a valid yaml file
python -c 'import yaml, sys; yaml.safe_load(sys.stdin)' < cfg.yaml
yaml vs json
yaml is
- more version control friendly
- more versatile
- superset of json
From raju
To check if a file is a valid yaml file
python -c 'import yaml, sys; yaml.safe_load(sys.stdin)' < cfg.yaml
yaml is