fixed issue #14
This commit is contained in:
parent
e4a8abf27a
commit
db813a7d7b
@ -4,14 +4,13 @@
|
|||||||
#include "bottles.hpp"
|
#include "bottles.hpp"
|
||||||
#include "internal/bottles.hpp"
|
#include "internal/bottles.hpp"
|
||||||
#include "commands.hpp"
|
#include "commands.hpp"
|
||||||
#include "dll.hpp"
|
|
||||||
#include "help.hpp"
|
#include "help.hpp"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace cellar::bottles;
|
using namespace cellar::bottles;
|
||||||
using namespace cellar::commands;
|
using namespace cellar::commands;
|
||||||
|
|
||||||
DLL_PUBLIC map<string, CommandFunction> cellar::commands::bottles_commands() {
|
map<string, CommandFunction> cellar::commands::bottles_commands() {
|
||||||
map<string, CommandFunction> result;
|
map<string, CommandFunction> result;
|
||||||
/*[[[cog
|
/*[[[cog
|
||||||
import cog
|
import cog
|
||||||
@ -39,7 +38,7 @@ DLL_PUBLIC map<string, CommandFunction> cellar::commands::bottles_commands() {
|
|||||||
cog.out("cellar::help::set_details(\"{0}\", R\"(".format(name))
|
cog.out("cellar::help::set_details(\"{0}\", R\"(".format(name))
|
||||||
with open("src/bottles/help/" + name) as detailsfile:
|
with open("src/bottles/help/" + name) as detailsfile:
|
||||||
for detail in detailsfile:
|
for detail in detailsfile:
|
||||||
cog.out(detail, dedent=True, trimblanklines=True)
|
cog.out(detail, trimblanklines=True)
|
||||||
cog.out(")\");")
|
cog.out(")\");")
|
||||||
else:
|
else:
|
||||||
print("-- No details are available for the {0} command.".format(name))
|
print("-- No details are available for the {0} command.".format(name))
|
||||||
|
@ -49,7 +49,7 @@ map<string, CommandFunction> cellar::commands::core_commands() {
|
|||||||
cog.out("cellar::help::set_details(\"{0}\", R\"(".format(name))
|
cog.out("cellar::help::set_details(\"{0}\", R\"(".format(name))
|
||||||
with open("src/help/" + name) as detailsfile:
|
with open("src/help/" + name) as detailsfile:
|
||||||
for detail in detailsfile:
|
for detail in detailsfile:
|
||||||
cog.out(detail, dedent=True, trimblanklines=True)
|
cog.out(detail, trimblanklines=True)
|
||||||
cog.out(")\");")
|
cog.out(")\");")
|
||||||
else:
|
else:
|
||||||
print("-- No details are available for the {0} command.".format(name))
|
print("-- No details are available for the {0} command.".format(name))
|
||||||
|
@ -39,7 +39,7 @@ DLL_PUBLIC map<string, CommandFunction> cellar::commands::launch_commands() {
|
|||||||
cog.out("cellar::help::set_details(\"{0}\", R\"(".format(name))
|
cog.out("cellar::help::set_details(\"{0}\", R\"(".format(name))
|
||||||
with open("src/launch/help/" + name) as detailsfile:
|
with open("src/launch/help/" + name) as detailsfile:
|
||||||
for detail in detailsfile:
|
for detail in detailsfile:
|
||||||
cog.out(detail, dedent=True, trimblanklines=True)
|
cog.out(detail, trimblanklines=True)
|
||||||
cog.out(")\");")
|
cog.out(")\");")
|
||||||
else:
|
else:
|
||||||
print("-- No details are available for the {0} command.".format(name))
|
print("-- No details are available for the {0} command.".format(name))
|
||||||
|
Loading…
Reference in New Issue
Block a user