aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/cmd.cpp')
-rw-r--r--frontend/cmd.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/cmd.cpp b/frontend/cmd.cpp
new file mode 100644
index 0000000..c5b03ea
--- /dev/null
+++ b/frontend/cmd.cpp
@@ -0,0 +1,17 @@
+#include <functional>
+#include <unordered_map>
+
+#include "cmd.h"
+
+using namespace std;
+
+static const unordered_map<string, function<void(const vector<string> &)>> handlers = {
+ {"gert", [] (const vector<string> & argv) { } },
+};
+
+void cmd_handle(const vector<string> & argv) {
+ string cmd = argv.front();
+ vector<string> args = argv;
+
+}
+