Exemple #1
0
 JsonnetVm(void)
   : gcGrowthTrigger(2.0), maxStack(500), gcMinObjects(1000), debugLexer(false), debugAst(false),
     debugDesugaring(false), maxTrace(20), importCallback(default_import_callback),
     importCallbackContext(this), stringOutput(false)
 {
     jpaths.emplace_back("/usr/share/" + std::string(jsonnet_version()) + "/");
     jpaths.emplace_back("/usr/local/share/" + std::string(jsonnet_version()) + "/");
 }
Exemple #2
0
 JsonnetConfig()
     : filename_is_code_(false),
       multi_(false) {
     jpaths_.emplace_back(
         "/usr/share/" + std::string(jsonnet_version()) + "/");
     jpaths_.emplace_back(
         "/usr/local/share/" + std::string(jsonnet_version()) + "/");
 }
Exemple #3
0
void version(std::ostream &o)
{
    o << "Jsonnet commandline interpreter " << jsonnet_version() << std::endl;
}