mirror of https://github.com/jackwener/wx-cli.git
1022 B
1022 B
| estimated_steps | estimated_files | skills_used |
|---|---|---|
| 9 | 2 |
T02: Wire --tcp into daemon status/stop/logs commands and verify end-to-end
Update src/cli/daemon_cmd.rs to:
DaemonCommands::Status— when --tcp addr is set, check TCP liveness viais_alive_tcp; report "listening on TCP {addr}" vs "listening on local socket"DaemonCommands::Stop— when --tcp is set, warn that TCP daemon must be stopped manually (it's a separate process)DaemonCommands::Logs— unchanged, logs go to same file- Update the
cmd_daemonfunction signature to accept tcp_addr
Then verify:
cargo checkpasses- Unit tests in transport module pass:
TcpConnectorimplementsConnector,TcpListenerimplementsListener - Existing
transport_addr_variantstest still passes
Inputs
src/cli/daemon_cmd.rssrc/cli/transport.rssrc/cli/mod.rs
Expected Output
src/cli/daemon_cmd.rs
Verification
cargo check 2>&1 | tail -5 && cargo test transport -- --nocapture 2>&1 | tail -10