"""
byceps.cli.command.export_roles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Export roles and their assigned permissions as TOML to STDOUT.

:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""

import click
from flask.cli import with_appcontext

from byceps.services.authorization import impex_service


@click.command()
@with_appcontext
def export_roles() -> None:
    """Export authorization roles."""
    print(impex_service.export_roles())

8b7d5ac41f9bf8538c74407e8e45b54e9ebf66b4
<mask token>

<mask token>


@click.command()
@with_appcontext
def export_roles() ->None:
    """Export authorization roles."""
    print(impex_service.export_roles())

<mask token>
import click
from flask.cli import with_appcontext
from byceps.services.authorization import impex_service


@click.command()
@with_appcontext
def export_roles() ->None:
    """Export authorization roles."""
    print(impex_service.export_roles())

"""
byceps.cli.command.export_roles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Export roles and their assigned permissions as TOML to STDOUT.

:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""

import click
from flask.cli import with_appcontext

from byceps.services.authorization import impex_service


@click.command()
@with_appcontext
def export_roles() -> None:
    """Export authorization roles."""
    print(impex_service.export_roles())
