def list_tasks(task_type="") -> None:
    """Lists all tasks of a certain type."""
    # Load all tasks. Take into account new tasks that have not been registered
    get_plugins_list()
    tasks = list()
    for task in Task.list():
        if task_type and task.type != task_type:
            continue
        tasks.append(task)
    for task in sorted(tasks, key=lambda x: x.name):
        click.echo(f"{task.name}")
Lists all tasks of a certain type.
yetictl/cli.py