cellar/include/commands.hpp

21 lines
422 B
C++
Raw Normal View History

#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();
}
}
#endif // __COMMANDS_HPP