from kapow import Application
from kapow import handlers
from . import __version__
from . import commands

app = Application(
    name="{appname}",
    version="__version__",
    cli_handler=handlers.docopt_handler(commands.__doc__),
    pre_config_handler=None,
    config_handler=None,
    post_config_handler=None,
    pre_logging_config_handler=None,
    logging_config_handler=None,
    context_handler=None,
    command_handler=handlers.docopt_command_finder(commands),
)

main = app.main
