somehow that fell out of my project tree
This commit is contained in:
parent
a74796f2f3
commit
d7afe473f3
28
src/config/defaults.cpp.cog
Normal file
28
src/config/defaults.cpp.cog
Normal file
@ -0,0 +1,28 @@
|
||||
// vim: ft=cpp :
|
||||
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
#include "config.hpp"
|
||||
|
||||
using namespace std;
|
||||
using nlohmann::json;
|
||||
|
||||
json cellar::config::get_default_config() {
|
||||
json result;
|
||||
/*[[[cog
|
||||
import cog
|
||||
import configparser
|
||||
|
||||
cparse = configparser.ConfigParser()
|
||||
cparse.read("cogrc")
|
||||
config = cparse["defaults"]
|
||||
for key in config.keys(): # TODO: bug #26
|
||||
value = config[key]
|
||||
print(" -- Compiling in default value for {0}: {1}".format(key, value))
|
||||
cog.outl("result[\"{0}\"] = \"{1}\";".format(key, value))
|
||||
]]]*/
|
||||
//[[[end]]]
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user