fsfwgen update #267

Merged
muellerr merged 4 commits from mueller/gen-update into develop 2022-06-21 10:40:16 +02:00
Showing only changes of commit 72ab141b41 - Show all commits

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3
import logging
import time
from objects.objects import parse_objects
@ -8,8 +7,10 @@ from returnvalues.returnvalues_parser import parse_returnvalues
from fsfwgen.core import (
return_generic_args_parser,
init_printout,
ParserTypes,
)
from fsfwgen.logging import get_console_logger
LOGGER = get_console_logger()
def main():
@ -17,19 +18,19 @@ def main():
parser = return_generic_args_parser()
args = parser.parse_args()
if args.type == "objects":
logging.info(f"Generating objects data..")
LOGGER.info(f"Generating objects data")
time.sleep(0.05)
parse_objects()
elif args.type == "events":
logging.info(f"Generating event data")
LOGGER.info(f"Generating event data")
time.sleep(0.05)
parse_events()
elif args.type == "returnvalues":
logging.info("Generating returnvalue data")
LOGGER.info("Generating returnvalue data")
time.sleep(0.05)
parse_returnvalues()
elif args.type == "all":
logging.info("Generating all data")
LOGGER.info("Generating all data")
parse_objects()
parse_events()
parse_returnvalues()