예제 #1
0
def start(service, *args, **kwargs):
    """
    Starts the various services used during API development
    """
    if service == 'all':
        s.info(
            f"Starting all services: $[{', '.join(map(str, [s for s in Service.SERVICE_LIST]))}]\n"
        )
        return [
            Service(s, *args, **kwargs).start() for s in Service.SERVICE_LIST
        ]
    service = Service(service, *args, **kwargs)
    s.info(f"Starting $[{service.name}]\n")
    service.start()