#ifndef CLICONSOLE_H #define CLICONSOLE_H #include #include #include #include #include #include "cli.h" class CLIConsole { private: struct sockaddr_un server; int sock; CLIHandler *handler; std::string socketPath; bool attached = false; std::pair send(std::string input); void attach(); public: CLIConsole(CLIHandler &cliHandler, std::string socketPath); void startInteractive(); }; #endif // CLICONSOLE_H