oliver-codegen

项目代码框架快速生成脚手架


Keywords
codegen, oliver-codegen
License
MIT
Install
pip install oliver-codegen==0.1.6

Documentation

oliver-codegen

oliver-codegen 是一款快速构建项目基础框架的脚手架工具. 其原理是从 Github 下载对应模板到本地, 并没有什么魔法代码.

安装

$ pipx install oliver-codegen

通常第一次使用 pipx 安装可执行程序时候, 可执行程序并没有自动添加到系统全局变量中, 导致在命令行无法使用. 这时候可以使用下面命令解决:

$ pipx ensurepath

使用方式

$ codegen create your_project_name -t python

其中 -t 后的参数是选择什么模板创建项目. 查看支持哪些模板命令 codegen list template

展示配置

输入以下命令, 将在控制台展示支持哪些模板.

$ codegen list template

更新程序

$ pipx upgrade oliver-codegen

如果你使用了国内镜像源, 可能存在同步问题, 无法更新到最新版本. 可以使用命令 pipx upgrade oliver-codegen -i https://pypi.org/simple/

卸载程序

$ pipx uninstall oliver-codegen