# -*- coding: utf-8 -*-
"""
cli module.

to enable locale management for application, execute:
`python cli.py babel enable`

to enable migrations for application, execute:
`python cli.py alembic enable`

to create a new package for application, execute:
`python cli.py template package`

usage example:

`python cli.py alembic upgrade --arg value`
`python cli.py babel extract --arg value`
`python cli.py template package`
`python cli.py celery worker --arg value`
`python cli.py security token --arg value`
"""

import fire

from pyrin.cli.services import get_cli_groups

from {APPLICATION_PACKAGE} import {APPLICATION_CLASS}


app_instance = {APPLICATION_CLASS}(scripting_mode=True)

if __name__ == '__main__':
    fire.Fire(get_cli_groups())
