execute

Function execute 

Source
pub async fn execute(args: InitArgs) -> Result<()>
Expand description

Execute the init command.

§Process

  1. Determine project name
  2. Select template (interactive or from args)
  3. Detect package manager
  4. Create project directory structure
  5. Generate files from template
  6. Show next steps

§Arguments

  • args - Parsed init command arguments

§Errors

Returns errors for:

  • Invalid project names
  • Directory already exists
  • File write failures