Skip to main content

create_project

Function create_project 

Source
pub fn create_project(name: &str, no_git: bool)
Expand description

Creates a new rl project directory at name.

Scaffolds the following structure:

<name>/
|-- .gitignore
|-- rl.toml
|-- src/
    |-- main.rl

rl.toml is pre-filled with the project name and current rl version. src/main.rl contains a hello world entry point. A git repository is initialized automatically.

Prints an error and exits with code 1 on any IO failure.