cogged include/internal/bottles.hpp

This commit is contained in:
Nicholas O'Connor
2017-03-23 14:43:48 -07:00
parent d8760c321a
commit 6943ebfd87
3 changed files with 22 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
#ifndef __INTERNAL_BOTTLES_HPP
#define __INTERNAL_BOTTLES_HPP
#pragma once
namespace cellar {
namespace bottles {
extern void print_bottles(int,char**);
extern void print_active_bottle(int,char**);
}
}
#endif // __INTERNAL_BOTTLES_HPP

View File

@@ -0,0 +1,20 @@
// vim: filetype=cpp :
#ifndef __INTERNAL_BOTTLES_HPP
#define __INTERNAL_BOTTLES_HPP
#pragma once
namespace cellar {
namespace bottles {
/*[[[cog
import cog
with open("src/bottles/commands.txt") as commandsfile:
for line in commandsfile:
item = line.split(" ")
cog.outl("extern void {0} (int, char**);".format(item[1]))
]]]*/
//[[[end]]]
}
}
#endif // __INTERNAL_BOTTLES_HPP