5 if ".data.xml" in input_file:
6 print(f"Formatting database file {input_file}")
9
10 testobj = dal.Service("Reformat-test-obj")
11 oks_kernel.update_dal(testobj)
12 oks_kernel.destroy_dal(testobj)
13
14 oks_kernel.commit()
15 elif ".schema.xml" in input_file:
16 print(f"Formatting schema file {input_file}")
17
18 oks_kernel = oks.OksKernel()
19 schema = oks_kernel.load_schema(str(input_file))
20
21 oks_kernel.save_as_schema(str(input_file), schema)
22
23 else:
24 print(f"Don't know how to handle file {input_file}")
module(name, schema, other_dals=[], backend='oksconflibs', db=None)