2024-03-15 18:58:06 +00:00
|
|
|
import click
|
|
|
|
from flask.cli import FlaskGroup
|
|
|
|
|
2023-04-09 14:14:38 +00:00
|
|
|
import canaille.app.commands
|
2024-04-06 16:16:48 +00:00
|
|
|
import canaille.backends.commands
|
2023-04-09 14:14:38 +00:00
|
|
|
import canaille.core.commands
|
|
|
|
import canaille.oidc.commands
|
|
|
|
from canaille import create_app
|
|
|
|
|
|
|
|
|
2024-05-08 08:31:34 +00:00
|
|
|
@click.group(
|
|
|
|
cls=FlaskGroup,
|
|
|
|
create_app=create_app,
|
|
|
|
add_version_option=False,
|
|
|
|
add_default_commands=False,
|
|
|
|
)
|
2023-04-09 14:14:38 +00:00
|
|
|
def cli():
|
2024-05-12 09:33:22 +00:00
|
|
|
"""Canaille management utilities."""
|
2023-04-09 14:14:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
canaille.app.commands.register(cli)
|
2024-04-06 16:16:48 +00:00
|
|
|
canaille.backends.commands.register(cli)
|
2023-04-09 14:14:38 +00:00
|
|
|
canaille.core.commands.register(cli)
|
|
|
|
canaille.oidc.commands.register(cli)
|