1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Dev command handler
//!
//! Orchestrates development mode with hot reload using DevSession service.
//! This handler follows the 3-layer architecture with session-based lifecycle management:
//! - Commands: Pure data structures (DevArgs)
//! - Handlers: Minimal orchestration (this file)
//! - Services: Session and business logic (DevSession, DevService, etc.)
// Submodules
use crateDevArgs;
use crateCliContext;
use Result;
use DevSession;
/// Handle dev command
///
/// Starts development mode with automatic rebuilding and hot reload.
///
/// # Architecture
///
/// This handler uses a session-based approach:
/// 1. DevSession - Manages entire dev lifecycle
/// 2. DevService - Core business logic
/// 3. Services - Infrastructure (Docker, Redis, Process, etc.)
/// 4. UI components - Display functions
///
/// The handler is now ultra-thin - it simply creates a DevSession
/// and executes it. All complexity is encapsulated in the session service.
///
/// # Arguments
///
/// * `ctx` - CLI execution context
/// * `args` - Dev command arguments
pub async