mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
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>