Files

33 lines
744 B
C++
Raw Permalink Normal View History

2017-03-23 14:43:48 -07:00
// vim: filetype=cpp :
#ifndef __INTERNAL_BOTTLES_HPP
#define __INTERNAL_BOTTLES_HPP
#pragma once
2017-03-23 21:20:26 -07:00
#include <map>
#include <string>
#include "commands.hpp"
using namespace cellar::commands;
2017-03-23 14:43:48 -07:00
namespace cellar {
namespace bottles {
/*[[[cog
import cog
with open("src/bottles/commands.txt") as commandsfile:
for line in commandsfile:
2017-03-23 14:44:39 -07:00
item = line.strip().split(" ")
2017-03-23 15:13:52 -07:00
cog.outl("extern void {0} (int, vector<string>);".format(item[1]))
2017-03-23 14:43:48 -07:00
]]]*/
//[[[end]]]
extern void setup_bottle_home();
2017-03-23 14:43:48 -07:00
}
2017-03-23 21:20:26 -07:00
namespace commands {
extern map<string, cellar::commands::CommandFunction> bottles_commands();
}
2017-03-23 14:43:48 -07:00
}
#endif // __INTERNAL_BOTTLES_HPP