Rechan CLI is a Qt-based command-line tool for creating, compiling, and managing various programming projects with easy configuration.
- 🛠️ Create new projects from ready-to-use templates:
- C++
- SDL2
- PHP
- Python
- Laravel
- Drogon
- ⚙️ Automatic compilation with project-specific configurations
- 🚀 Run development servers for various frameworks
- 📦 Template management through centralized JSON configuration
- 💡 Graphical UI popups for notifications
git clone https://github.com/username/rechan-cli.git
cd rechan-cli
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="path/to/vcpkg/scripts/buildsystems/vcpkg.cmake" \
-DCMAKE_PREFIX_PATH="path/to/Qt/v5.0.0/msvc2019_64"
cmake --build . --config ReleaseTo use rechan from anywhere in your terminal (CMD, PowerShell, or Git Bash), you need to place rechan.exe in a folder that is registered in your system's PATH.
rechan --helpto bring up
Rechan CLI 1.2.0
Usage: rechan <command> [args]
Available commands:
create <type> <name> [options]
types: laravel, drogon, controller, cpp, sdl, php, python
options:
--laravel-version <version> Specify Laravel version
--project <path> Project path (for Drogon controllers)
compile [dir] Compile project
init <type> <name> Initialize project components
serve <type> <port> Start development server
--version Show version
Create SDL2 project:
rechan create sdl my_sdl_gameCompile C++ project:
rechan compile ./my_cpp_projectRun PHP server:
rechan serve php 8080Create Drogon controller:
rechan init controller MyControllerCreate Laravel project:
rechan create laravel:^10 apprechan-cli/
├── CMakeLists.txt
├── build.bat
├── main.cpp
├── command_dispatcher.hpp
├── command_dispatcher.cpp
├── commands.json
├── nlohmann/
│ └── json.hpp
├── resources/
│ ├── icon.ico
│ └── resources.qrc
└── build/
Project templates are configured in commands.json:
{
"templates": {
"cpp": {
"files": {
"CMakeLists.txt": "...",
"main.cpp": "..."
}
},
"sdl": {
"files": {
"CMakeLists.txt": "...",
"main.cpp": "..."
}
}
},
"commands": {
"compile": {
"default": "cmake -B build && cmake --build build",
"sdl": "cmake -B build -DCMAKE_TOOLCHAIN_FILE=...",
"laravel": "cd {{name}} && composer install && npm install"
},
"serve": {
"php": "php -S localhost:{{port}}",
"laravel": "php artisan serve --port={{port}}"
}
}
}| Project Type | Create | Compile | Serve |
|---|---|---|---|
| C++ | ✅ | ✅ | ❌ |
| SDL2 | ✅ | ✅ | ❌ |
| PHP | ✅ | ❌ | ✅ |
| Python | ✅ | ❌ | ✅ |
| Laravel | ✅ | ✅ | ✅ |
| Drogon | ✅ | ✅ | ✅ |
- Fork the repository
- Create feature branch (
git checkout -b new-feature) - Commit changes (
git commit -am 'Add new feature') - Push to branch (
git push origin new-feature) - Create Pull Request
This project is licensed under the MIT License.
Built with ❤️ using Qt and C++