INNER CODE UNIT · Python

list_workflow_names

flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:751

def list_workflow_names(project, domain, host, insecure, token, limit, show_all, sort_by):
    """
    List the names of the workflows under a scope specified by ``{project, domain}``.
    """
    _welcome_message()
    client = _get_client(host, insecure)

    click.echo("Workflow Names Found in {}:{}\n".format(_tt(project), _tt(domain)))
    while True:
        wf_ids, next_token = client.list_workflow_ids_paginated(
            project,
            domain,
            limit=limit,
            token=token,
            sort_by=_admin_common.Sort.from_python_std(sort_by) if sort_by else None,
        )
        for i in wf_ids:
            click.echo("\t{}".format(_tt(i.name)))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…