From 971854bfefad4c644ac3d5f5d6003f24d551bf1d Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 10 Mar 2025 22:04:24 +0530 Subject: Add completer + simplify command parsing + class generator --- include/CommandParser.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/CommandParser.hpp') diff --git a/include/CommandParser.hpp b/include/CommandParser.hpp index 128b5f4..dea04c5 100644 --- a/include/CommandParser.hpp +++ b/include/CommandParser.hpp @@ -12,13 +12,10 @@ enum CommandType { TabPrev, }; -class Cmd { -public: +struct Cmd { CommandType command; - QStringList args; - - Cmd(CommandType command = Noop, QStringList args = QStringList()) - : command(command), args(args) {} + QString argsString; + QString rawInput; }; class CommandParser { -- cgit v1.3.1