cellar/include/commands.hpp

23 lines
483 B
C++

#ifndef __COMMANDS_HPP
#define __COMMANDS_HPP
#pragma once
#include <map>
#include <string>
#include <vector>
using namespace std;
namespace cellar {
namespace commands {
typedef void (*CommandFunction)(int, vector<string>);
extern map<string, CommandFunction> command_map;
void add_command(string, CommandFunction);
vector<string> list_commands();
extern map<string,CommandFunction> core_commands();
}
}
#endif // __COMMANDS_HPP