Add psm writer
This commit is contained in:
+3
-1
@@ -2,6 +2,7 @@ import click
|
||||
from pathlib import Path
|
||||
|
||||
from json_parser import parse_json
|
||||
from psm_parser import write_psm
|
||||
from xml_parser import get_xml_data, add_connection, write_xml_data
|
||||
|
||||
|
||||
@@ -14,8 +15,9 @@ from xml_parser import get_xml_data, add_connection, write_xml_data
|
||||
def main(json: Path, xml: Path, name: str, description: str, pretty: bool):
|
||||
xml_data = get_xml_data(xml)
|
||||
field_names = parse_json(json)
|
||||
root = add_connection(xml_data, name, field_names, description=description)
|
||||
root = add_connection(xml_data, name, field_names, description=description)
|
||||
write_xml_data(root, xml, pretty=pretty)
|
||||
write_psm(name, field_names)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user