#!/usr/bin/env python3 import logging from definitions import BspType from objects.objects import parse_objects from events.event_parser import parse_events from returnvalues.returnvalues_parser import parse_returnvalues from fsfwgen.core import ( return_generic_args_parser, init_printout, ) _LOGGER = logging.getLogger(__name__) def main(): init_printout(project_string="EIVE") parser = return_generic_args_parser() args = parser.parse_args() bsp_select = BspType.BSP_Q7S if args.type == "objects": _LOGGER.info(f"Generating objects data") parse_objects(bsp_select) elif args.type == "events": _LOGGER.info(f"Generating event data") parse_events(bsp_select) elif args.type == "returnvalues": _LOGGER.info("Generating returnvalue data") parse_returnvalues(bsp_select) elif args.type == "all": _LOGGER.info("Generating all data") parse_objects(bsp_select) parse_events(bsp_select) parse_returnvalues(bsp_select) if __name__ == "__main__": main()