pub fn execute(args: &NewArgs) -> Result<(), String>Expand description
Execute the new command
Creates a new Dampen project directory with:
Cargo.tomlwith Dampen dependenciessrc/main.rswith a complete Hello World application using auto-loadingsrc/ui/mod.rs- UI modulesrc/ui/window.rs- UI model and handlers with#[dampen_ui]macrosrc/ui/window.dampen- Declarative UI definition (XML)tests/integration.rs- Integration testsREADME.mdwith comprehensive getting started instructions
§Arguments
args- Command arguments containing the project name
§Returns
Ok(())- If project was created successfullyErr(String)- If creation failed with error message
§Errors
This function will return an error if:
- The project name is invalid
- A directory with the same name already exists
- File system operations fail (e.g., permission denied)