-
-
Save berga/bc104df9c2af74fa67dcc0fe89efd3a8 to your computer and use it in GitHub Desktop.
Validate YAML file using Python one-liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < file.yml | |
Needs "pip install pyyaml". | |
Source: https://liquidat.wordpress.com/2016/01/21/short-tip-verify-yaml-in-shell-via-python-one-liner/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment