execute

Function execute 

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

Execute the dev command.

§Process Flow

  1. Load and validate dev configuration
  2. Create builder and perform initial build
  3. Start file watcher for auto-rebuild
  4. Start HTTP server with SSE
  5. Main event loop:
    • Watch for file changes
    • Trigger rebuilds on changes
    • Broadcast events to connected clients
    • Handle Ctrl+C for graceful shutdown

§Arguments

  • args - Parsed dev command arguments

§Errors

Returns errors for:

  • Invalid configuration
  • Build failures
  • Server startup failures
  • File watcher errors