consolidated command plumbing into one cogfile

This commit is contained in:
Nicholas O'Connor
2017-04-13 12:51:04 -07:00
parent d5ec9071ff
commit f83b5eb6d4
9 changed files with 47 additions and 128 deletions

View File

@@ -11,16 +11,18 @@
using namespace cellar::commands;
namespace cellar {
namespace commands {
namespace core {
/*[[[cog
import cog
with open("src/commands.txt") as commandsfile:
with open("src/core/commands.txt") as commandsfile:
for line in commandsfile:
item = line.strip().split(" ")
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
]]]*/
//[[[end]]]
}
namespace commands {
extern map<string, cellar::commands::CommandFunction> core_commands();
}
}