import fire
from loguru import logger

from ktoolbox.cli import KToolBoxCli
from ktoolbox.configuration import config
from ktoolbox.utils import logger_init, uvloop_init, generate_msg


def main():
    logger_init(cli_use=True)
    logger.debug(generate_msg(config=config))
    uvloop_init()
    fire.Fire(KToolBoxCli)


if __name__ == "__main__":
    main()
