# -*- coding: utf-8 -*-

"""Export the Bioregistry."""

import click


@click.command()
@click.pass_context
def export(ctx: click.Context):
    """Export the Bioregistry."""
    from .prefix_maps import generate_context_json_ld
    from .rdf_export import export_rdf
    from .sssom_export import export_sssom
    from .tsv_export import export_tsv
    from .warnings_export import export_warnings
    from .yaml_export import export_yaml

    ctx.invoke(export_warnings)
    ctx.invoke(export_rdf)
    ctx.invoke(export_tsv)
    ctx.invoke(export_yaml)
    ctx.invoke(export_sssom)
    ctx.invoke(generate_context_json_ld)


if __name__ == "__main__":
    export()
