aboutsummaryrefslogtreecommitdiff
path: root/include/CommandParser.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-10 22:04:24 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-10 22:13:15 +0530
commit971854bfefad4c644ac3d5f5d6003f24d551bf1d (patch)
tree0f5ee90fd5968d345b157d38964094837315edf0 /include/CommandParser.hpp
parentd400369084107104f51fe217d5781c8d7bd07ff9 (diff)
downloadnull-browser-971854bfefad4c644ac3d5f5d6003f24d551bf1d.tar.gz
null-browser-971854bfefad4c644ac3d5f5d6003f24d551bf1d.zip
Add completer + simplify command parsing + class generator
Diffstat (limited to 'include/CommandParser.hpp')
-rw-r--r--include/CommandParser.hpp9
1 files changed, 3 insertions, 6 deletions
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 {