consolidated command plumbing into one cogfile

This commit is contained in:
Nicholas O'Connor committed 2017-04-13 12:51:04 -07:00
1 parent d5ec9071ff
commit f83b5eb6d4
9 files changed
+47 -128

No files matched your search

+4 -2
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();
}
}