#cpp #cc #generate #cli-tool #txt #command #cenv

app cenv-cli

This is a CLI-tool for generating a C/C++ project

5 releases

new 0.1.6 Jul 24, 2024
0.1.5 Jul 24, 2024
0.1.2 Mar 13, 2024

#272 in Development tools

Download history 24/week @ 2024-04-04 112/week @ 2024-07-04 16/week @ 2024-07-11 124/week @ 2024-07-18

252 downloads per month

Apache-2.0 OR MIT

30KB
807 lines

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

Dependencies

~1.9–3MB
~58K SLoC