2017-03-22 19:34:50 -07:00
|
|
|
#ifndef __COMMANDS_HPP
|
|
|
|
#define __COMMANDS_HPP
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
namespace cellar {
|
|
|
|
namespace commands {
|
2017-03-23 15:13:52 -07:00
|
|
|
typedef void (*CommandFunction)(int, vector<string>);
|
2017-03-22 19:34:50 -07:00
|
|
|
extern map<string, CommandFunction> command_map;
|
|
|
|
|
2017-03-22 23:23:15 -07:00
|
|
|
void add_command(string, CommandFunction);
|
2017-03-22 19:34:50 -07:00
|
|
|
vector<string> list_commands();
|
2017-03-23 19:09:36 -07:00
|
|
|
|
|
|
|
extern map<string,CommandFunction> core_commands();
|
2017-03-22 19:34:50 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __COMMANDS_HPP
|