<filename>app/main.py
# -*- coding: utf-8 -*-
#
# 工具函数库
# Author: alex
# Created Time: 2021年06月09日 星期三
import fire
from .settings import VERSION
from .cmd import Project
from .cmd import clone
from .config_cmd import Config
from .file_cmd import File
from .module_cmd import Module
from .check_cmd import CodeCheck


def version() -> str:
    """版本号"""
    return f'Version: {VERSION}'


def main():
    """主入口"""
    fire.Fire({
        'version': version,
        'clone': clone,            # 替代git clone命令
        'config': Config(),
        'project': Project(),
        'module': Module(),
        'file': File(),
        'check': CodeCheck(),
    })


if __name__ == '__main__':
    main()
