Skip to content

thecodefodder/Ranger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ranger

This project is a simple command-line tool written in Rust that helps you create a C/C++ project with a specified build system.

  • CMake
  • Make
  • Meson.
  • Premake5

The tool downloads the necessary template files from this GitHub repository and sets up the project structure for you.

Features

  • Create a C/C++ project with a specified build system.
  • Automatically download and configure template files.
  • Supports CMake, Make, and Meson build systems.

Prerequisites

  • Rust (1.50 or later)
  • Cargo (Rust's package manager)

Installation

Easy way

cargo install --git https://github.com/thecodefodder/Ranger

Build from source

  1. Clone the repository:

    git clone https://github.com/thecodefodder/Ranger.git
    cd Ranger
  2. Build the project:

    cargo build --release

Usage

To create a new C/C++ project, run the following command:

cargo run <project_name>

Replace <project_name> with your desired project name. You will then be prompted to select a build system from the available options:

  • CMake
  • Make
  • Meson
  • Premake5

The tool will create a new directory with the specified project name and set up the necessary files based on the selected build system.

Example

Here’s an example of how to create a new project called MyProject using CMake:

cargo run MyProject

After running the command, you will see prompts guiding you through the process. The resulting project structure will look something like this:

MyProject/
├── CMakeLists.txt
└── src/
    └── main.cpp

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Easily create and configure C/C++ projects with a variety of build systems using a simple CLI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •