blob: c5b03ea3d9b68d999cb6a22ef55d180a30699b1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}
|