cenv-cli

Crates.iocenv-cli
lib.rscenv-cli
version0.1.6
sourcesrc
created_at2024-03-12 08:19:49.57228
updated_at2024-07-24 18:28:41.699945
descriptionThis is a CLI-tool for generating a C/C++ project
homepage
repositoryhttps://github.com/wuliao97/cenv-cli.git
max_upload_size
id1170314
size54,623
(wuliao97)

documentation

README

CEnv-CLI

Author - Ennui.lw

Last Edit: 08/07/2024

Installation

cargo install cenv-cli

Usage

you want to genarate C++ project

no need to -x, -cpp options. It's on by default.

ex:

cenv my_cpp_proj

Directry Tree

my_cpp_proj
├── build/
├── CMakeLists.txt
├── run
└── src
   └── main.cpp

C lang Case

ex:

cenv my_c_proj gcc -c

Command Help

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
Commit count: 5

cargo fmt