5个版本
0.1.6 | 2024年7月24日 |
---|---|
0.1.5 |
|
0.1.2 | 2024年3月13日 |
#188 in 开发工具
每月345次下载
30KB
807 代码行
CEnv-CLI
作者 - Ennui.lw
最后编辑:2024年8月7日
安装
cargo install cenv-cli
用法
您想生成C++项目
不需要-x
,-cpp
选项。默认开启。
示例
cenv my_cpp_proj
↓
目录结构
my_cpp_proj
├── build/
├── CMakeLists.txt
├── run
└── src
└── main.cpp
C语言示例
示例
cenv my_c_proj gcc -c
命令帮助
This is a CLI-tool for generating a C/C++ project
Usage: cenv [OPTIONS] <PROJECT_NAME> [BUILD_TYPE]
Arguments:
<PROJECT_NAME> A name of project
[BUILD_TYPE] You can choose the Tool for Build [default: cmake] [possible values: gcc, gpp, make, cmake, clang, clangpp]
Options:
-c, --c If you want to use C lang
-x, --cpp If you want to use C++ lang
-g, --git Initialization git and add a .gitignore
-r, --readme Add a readme.md file
-s, --slient Slient. Don't print details
-h, --help Print help
-V, --version Print version
依赖项
~2–3.5MB
~61K SLoC