diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-24 20:26:29 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-24 20:26:29 +1200 |
| commit | 638c3ac10003f66ef4af43f50ee365c9036da0fe (patch) | |
| tree | a2e17e4693761e92a6be2d84b12d763e48bb48eb /commands.h | |
| parent | 87b7f6c47d8eab8bfe7f126652a88939aac58a6a (diff) | |
| download | YATwm-638c3ac10003f66ef4af43f50ee365c9036da0fe.tar.gz YATwm-638c3ac10003f66ef4af43f50ee365c9036da0fe.zip | |
feat: Added ; as a command separator
Diffstat (limited to 'commands.h')
| -rw-r--r-- | commands.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -51,6 +51,7 @@ private: std::vector<Command> commandList; std::vector<std::string> splitCommand(std::string command); CommandArg* getCommandArgs(std::vector<std::string>& args, const CommandArgType* argTypes, const int argc); + const void echo(const CommandArg* argv); public: CommandsModule(); ~CommandsModule(); @@ -63,7 +64,9 @@ public: void addCommand(Command c); Command* lookupCommand(std::string name); void runCommand(std::string command); - Err checkCommand(std::string command); + void runCommand(std::vector<std::string> split); + std::vector<Err> checkCommand(std::string command); + Err checkCommand(std::vector<std::string> split); }; // YES I KNOW THIS IS BAD |
