pub fn demo_site(
starter_template: &Starter,
path: &PathBuf,
folder_name: &str,
define: Option<Vec<String>>,
) -> Result<PathBuf>
Expand description
A generator form the git repo
§Errors
- when
folder_name
does not exist or A non-final component in path is not a directory - When has an error generating the git repository
§Examples
use std::path::PathBuf;
use rustyrails_cli::template::Starter;
let path = PathBuf::from(".");
rustyrails_cli::generate::demo_site(&Starter::Saas,&path, "demo-website", None);