launching commands!
This commit is contained in:
@@ -3,6 +3,13 @@
|
||||
#define __INTERNAL_BOTTLES_HPP
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "commands.hpp"
|
||||
|
||||
using namespace cellar::commands;
|
||||
|
||||
namespace cellar {
|
||||
namespace bottles {
|
||||
/*[[[cog
|
||||
@@ -15,6 +22,9 @@ namespace cellar {
|
||||
]]]*/
|
||||
//[[[end]]]
|
||||
}
|
||||
namespace commands {
|
||||
extern map<string, cellar::commands::CommandFunction> bottles_commands();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __INTERNAL_BOTTLES_HPP
|
||||
|
1
include/internal/core.hpp
Normal file
1
include/internal/core.hpp
Normal file
@@ -0,0 +1 @@
|
||||
// dummy file
|
30
include/internal/launch.hpp.cog
Normal file
30
include/internal/launch.hpp.cog
Normal file
@@ -0,0 +1,30 @@
|
||||
// vim: filetype=cpp :
|
||||
#ifndef __INTERNAL_LAUNCH_HPP
|
||||
#define __INTERNAL_LAUNCH_HPP
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "commands.hpp"
|
||||
|
||||
using namespace cellar::commands;
|
||||
|
||||
namespace cellar {
|
||||
namespace launch {
|
||||
/*[[[cog
|
||||
import cog
|
||||
|
||||
with open("src/launch/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,CommandFunction> launch_commands();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __INTERNAL_LAUNCH_HPP
|
Reference in New Issue
Block a user