Example #1
0
def generate_tasks(config_file: str, target_dir: str) -> None:
    """
    Generating tasks for a module based on config
    """

    module = Module(config_file, target_dir)
    module.generate_task_configs()

    Printer.print_success("Tasks are successfully generated")
Example #2
0
def list_ios() -> None:
    """
    Printing valid io types
    """

    Printer.print_success("\n".join(valid_tasks))
Example #3
0
def init_io(type: str) -> None:
    """
    Printing io template config
    """

    Printer.print_success(io_factory.factory[type].sample())
Example #4
0
def list_alerts() -> None:
    """
    Printing valid io types
    """

    Printer.print_success("\n".join(valid_alerts))
Example #5
0
def init_task(type: str) -> None:
    """
    Printing task template config
    """

    Printer.print_success(task_factory.factory[type].sample())
Example #6
0
def module_config() -> None:
    """
    Printing module config file
    """
    Printer.print_success(Module.module_config_template())
Example #7
0
def init_pipeline() -> None:
    """
    Printing pipeline template config
    """

    Printer.print_success(Pipeline.sample())