pub async fn execute(args: DevArgs) -> Result<()>Expand description
Execute the dev command.
§Process Flow
- Load and validate dev configuration
- Create builder and perform initial build
- Start file watcher for auto-rebuild
- Start HTTP server with SSE
- 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