INNER CODE UNIT · Python
list_workflow_versions
flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:791
def list_workflow_versions(project, domain, name, host, insecure, token, limit, show_all, filter, sort_by):
"""
List all the versions of the workflows under the scope specified by ``{project, domain}``.
If the name of a a certain workflow is supplied, this command will list all the
versions of that particular workflow (identifiable by ``{project, domain, name}``).
"""
_welcome_message()
client = _get_client(host, insecure)
click.echo("Workflow Versions Found for {}:{}:{}\n".format(_tt(project), _tt(domain), _tt(name or "*")))
click.echo("{:50} {:40}".format("Version", "Urn"))
while True:
wf_list, next_token = client.list_workflows_paginated(
_common_models.NamedEntityIdentifier(project, domain, name),
limit=limit,
token=token,
filters=[_filters.Filter.from_python_std(f) for f in filter],
sort_by=_admin_common.Sort.from_python_std(sort_by) if sort_by else None,