diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-10 22:04:24 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-10 22:13:15 +0530 |
| commit | 971854bfefad4c644ac3d5f5d6003f24d551bf1d (patch) | |
| tree | 0f5ee90fd5968d345b157d38964094837315edf0 /include/CommandParser.hpp | |
| parent | d400369084107104f51fe217d5781c8d7bd07ff9 (diff) | |
| download | null-browser-971854bfefad4c644ac3d5f5d6003f24d551bf1d.tar.gz null-browser-971854bfefad4c644ac3d5f5d6003f24d551bf1d.zip | |
Add completer + simplify command parsing + class generator
Diffstat (limited to '')
| -rw-r--r-- | include/CommandParser.hpp | 9 |
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 { |
