#cc #cpp #build #command-line-tool #generate #txt #cenv

build cenv-cli

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

5 releases

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

#110 in Build Utils

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–3.5MB
~60K SLoC