Files
metabuilder/dbal/cpp/src
copilot-swe-agent[bot] a07b153298 Add interactive mode as default with optional daemon mode
Implemented dual-mode operation for better UX:

**Interactive Mode (NEW, Default):**
- Command prompt (dbal>) with built-in commands
- `status` - Show server address, mode, and running state
- `help`/`?` - Display available commands
- `stop`/`exit`/`quit` - Graceful shutdown
- Real-time command input with std::getline
- Better for development and debugging

**Daemon Mode:**
- Use `--daemon` or `-d` flag
- Runs in background until Ctrl+C
- Same behavior as before
- Better for production deployments

**Command Line:**
```bash
# Interactive mode (default)
./dbal_daemon --bind 127.0.0.1 --port 8080

# Daemon mode
./dbal_daemon --bind 127.0.0.1 --port 8080 --daemon
```

**Help Output Updated:**
- Added interactive mode documentation
- Shows available commands
- Daemon flag documented

**Use Cases:**
- Development: Interactive mode for quick testing
- Production: Daemon mode with systemd/Docker
- K8s/Swarm: Daemon mode with orchestration

Ready for both development and enterprise deployment.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-25 00:35:18 +00:00
..