Metadata-Version: 2.1
Name: oliver-codegen
Version: 0.1.5
Summary: 项目代码框架快速生成脚手架
Home-page: https://github.com/lifefossil/oliver-codegen
Keywords: codegen,oliver-codegen
Author: oliver
Author-email: lifefossil@outlook.com
Requires-Python: >=3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: gitpython (>=3.1.42,<4.0.0)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Project-URL: Repository, https://github.com/lifefossil/oliver-codegen
Description-Content-Type: text/markdown

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


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

## 使用方式
```bash
$ codegen create your_project_name -t python
```
其中 `-t` 后的参数是选择什么模板创建项目. 查看支持哪些模板命令 `codegen list template`


## 展示配置
输入以下命令, 将在控制台展示支持哪些模板.
```bash
$ codegen list template
```


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

## 卸载程序
```bash
$ pipx uninstall oliver-codegen
```

