1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

doc update

This commit is contained in:
Kelly Brazil
2020-02-03 16:17:29 -08:00
parent d04ad45331
commit eb37fccd37

View File

@ -44,18 +44,17 @@ def process(proc_data):
Returns: Returns:
List of dictionaries. Structured data with the following schema: List of dictionaries. Each dictionary represents a YAML document:
[ [
{ {
"yaml": string, YAML Document converted to a Dictionary
"bar": boolean, See https://pypi.org/project/ruamel.yaml for details
"baz": integer
} }
] ]
""" """
# rebuild output for added semantic information # No further processing
return proc_data return proc_data
@ -77,6 +76,8 @@ def parse(data, raw=False, quiet=False):
jc.utils.compatibility(__name__, info.compatible) jc.utils.compatibility(__name__, info.compatible)
raw_output = [] raw_output = []
# support multiple documents in a file
cleandata = data.split('---') cleandata = data.split('---')
if cleandata: if cleandata: