#init #demo #cli

bin+lib vcli

my tiny CLI for init C++ Project

5 releases

0.1.4 Jul 18, 2023
0.1.3 Jul 16, 2023
0.1.2 Jul 14, 2023
0.1.1 Jul 14, 2023
0.1.0 Jul 14, 2023

#2495 in Command line utilities

25 downloads per month

MIT license

10KB
185 lines

πŸŒ‹ vCLI

πŸ’­ About

vCLI is my tiny CLI for init C++ (maybe support multiple language) Project, which is written in RustπŸ¦€.

πŸ“¦ Install

You can easily install vCLI using cargo.

cargo install vcli

πŸš€ Usage

You can use vCLI just wiht your target project name

vcli <project-name>

vCLI use cpp as default template, so you can use it to init cpp project without additional flag. simple example as follow:

vcli hello-world

In Addition, you need add language flag -l or --language to specify the lang of target, if you want use it for extra template. Simple shell example as follow:

vcli hello-world -l shell

✨ Supported Language

  • C++
  • Shell

🌲 Template Structure (CPP version)

β”œβ”€β”€ app/
β”œβ”€β”€ include
β”‚   β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ hello.h
β”‚   └── your header file...
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ run.sh
β”‚   └── your scripts file..
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ core/ 
β”‚   β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ CMakeLists.txt
β”‚   β”œβ”€β”€ hello.cc
β”‚   └── your source file...
β”œβ”€β”€ tests/
β”œβ”€β”€ CMakeLists.txt
└── main.cc

βœ… TODO

  • Add more templates
  • Support for customised templates
  • More and more

Dependencies

~1.6–2.6MB
~50K SLoC