https://github.com/atifaziz/oh-yaml
Simple command-line version of Online YAML Parser at https://yaml-online-parser.appspot.com
https://github.com/atifaziz/oh-yaml
yaml
Last synced: about 2 months ago
JSON representation
Simple command-line version of Online YAML Parser at https://yaml-online-parser.appspot.com
- Host: GitHub
- URL: https://github.com/atifaziz/oh-yaml
- Owner: atifaziz
- License: apache-2.0
- Created: 2021-05-26T16:38:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T17:03:45.000Z (about 5 years ago)
- Last Synced: 2025-06-07T03:05:30.595Z (about 1 year ago)
- Topics: yaml
- Language: PowerShell
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
README
# Offline YAML Parser
A version of [Online YAML Parser] that can be run as a local program.
Usage:
python app.py [ json | python | canonical-yaml ] < YAML
The program reads a YAML document from standard input and prints the specified
format (`json`, `python` or `canonical-yaml` where `json` is the default if
none is specified) to standard output.
If the YAML is invalid then the exit code is non-zero. Otherwise it is zero to
conventionally indicate success.
See the `examples` folder for examples of YAML documents.
On Windows, use [Pie] (included) for a non-intrusive Python installation.
To build a Docker image to use, run:
docker build -t oh-yaml .
Example of running the image:
$ cat examples/2.01 | docker run --name oh-yaml --rm -i oh-yaml
If on Windows, use the following command-line instead:
> type examples\2.01 | docker run --name oh-yaml --rm -i oh-yaml
[Online YAML Parser]: http://yaml-online-parser.appspot.com/
[Pie]: https://github.com/atifaziz/pie.ps