summaryrefslogtreecommitdiff
path: root/commands.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-08-24 12:58:40 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-08-24 12:58:40 +1200
commit6b5c246a431dcaff119833724137f0716fa2a002 (patch)
tree99ced8d93809cf675b55ea683f28f847e84d9722 /commands.h
parent87b7f6c47d8eab8bfe7f126652a88939aac58a6a (diff)
parentd22b5d2363ed8a90960446a209482180f6d27fc0 (diff)
downloadYATwm-6b5c246a431dcaff119833724137f0716fa2a002.tar.gz
YATwm-6b5c246a431dcaff119833724137f0716fa2a002.zip
Merge branch 'keybind-refactor'
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands.h b/commands.h
index d7f2351..af4a4a0 100644
--- a/commands.h
+++ b/commands.h
@@ -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