module documentation

Convert LEX config files from JSON to YML.

Function json_to_yaml Convert JSON configuration file to YAML file.
Function main Undocumented
Function parse_args Undocumented
def json_to_yaml(in_file: Path, out_file: Path = None): (source)

Convert JSON configuration file to YAML file.

Notes

Preserves the order of the JSON file (since the ones we're concerned about are mostly written by hand) see: https://stackoverflow.com/questions/53874345/how-do-i-dump-an-ordereddict-out-as-a-yaml-file

Parameters
in_file:PathInput file
out_file:Path, optionalOutput file for YAML, optional. Default is "infile.json" -> "infile.yml"
def main(args): (source)

Undocumented

def parse_args(args=None): (source)

Undocumented