You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needed this to initialize a project in an already-initialized template at a fixed path in Foundry tests, basically:
/// Initializes a new project in the given directory.pubfninitialize(at:&Path){let global_path = Path::new("/tmp/my_template/");let project = MyProject::new_with_root(global_path);// Wraps TempProjectif project.is_empty(){// std::fs::read_dir or whatever
project.initialize().unwrap();}
project.copy_to(at).unwrap();// can also return a new project here// Project::new_with_root(at)}
The text was updated successfully, but these errors were encountered:
Needed this to initialize a project in an already-initialized template at a fixed path in Foundry tests, basically:
The text was updated successfully, but these errors were encountered: