mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
* Moved commands into their own folder to reduce `bin.rs`'s size * Moved all of the VFS-related functionality into its own folder * Documented a lot of functions, including a few very obscure ones
16 lines
387 B
Rust
16 lines
387 B
Rust
use std::path::PathBuf;
|
|
use std::process;
|
|
|
|
use project::Project;
|
|
|
|
pub fn init(project_path: &PathBuf) {
|
|
match Project::init(project_path) {
|
|
Ok(_) => {
|
|
println!("Created new empty project at {}", project_path.display());
|
|
},
|
|
Err(e) => {
|
|
eprintln!("Failed to create new project.\n{}", e);
|
|
process::exit(1);
|
|
},
|
|
}
|
|
}
|