This commit is contained in:
parent
c6b00e2448
commit
72ab141b41
@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import logging
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from objects.objects import parse_objects
|
from objects.objects import parse_objects
|
||||||
@ -8,8 +7,10 @@ from returnvalues.returnvalues_parser import parse_returnvalues
|
|||||||
from fsfwgen.core import (
|
from fsfwgen.core import (
|
||||||
return_generic_args_parser,
|
return_generic_args_parser,
|
||||||
init_printout,
|
init_printout,
|
||||||
ParserTypes,
|
|
||||||
)
|
)
|
||||||
|
from fsfwgen.logging import get_console_logger
|
||||||
|
|
||||||
|
LOGGER = get_console_logger()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -17,19 +18,19 @@ def main():
|
|||||||
parser = return_generic_args_parser()
|
parser = return_generic_args_parser()
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.type == "objects":
|
if args.type == "objects":
|
||||||
logging.info(f"Generating objects data..")
|
LOGGER.info(f"Generating objects data")
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
parse_objects()
|
parse_objects()
|
||||||
elif args.type == "events":
|
elif args.type == "events":
|
||||||
logging.info(f"Generating event data")
|
LOGGER.info(f"Generating event data")
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
parse_events()
|
parse_events()
|
||||||
elif args.type == "returnvalues":
|
elif args.type == "returnvalues":
|
||||||
logging.info("Generating returnvalue data")
|
LOGGER.info("Generating returnvalue data")
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
parse_returnvalues()
|
parse_returnvalues()
|
||||||
elif args.type == "all":
|
elif args.type == "all":
|
||||||
logging.info("Generating all data")
|
LOGGER.info("Generating all data")
|
||||||
parse_objects()
|
parse_objects()
|
||||||
parse_events()
|
parse_events()
|
||||||
parse_returnvalues()
|
parse_returnvalues()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user