Compare commits

..

No commits in common. "41c8f0c633f145b290f7d0ad7de0f5a5c5949d0a" and "5c69b735a8c0aae07f8e1749cb345a264167941c" have entirely different histories.

3 changed files with 4 additions and 11 deletions

View file

@ -1,5 +0,0 @@
local cmd = require("cmd").cmd
return function(line)
cmd('nix develop -c "' .. line .. '"')
end

View file

@ -118,6 +118,7 @@ void LuaLoader::Import(const std::string& name, const std::string& field, int ta
void LuaLoader::ParseImport() {
if (!lua_istable(L, -1)) {
lua_pop(L, 1);
return;
}

View file

@ -47,12 +47,6 @@ int main(int argc, char* argv[]) {
for (auto script_name : scripts) {
lua.LoadToGlobal(script_name);
parser.AddRule(MakePattern({".", "config", script_name.string().data()}),
[&projects](auto& args) {
const auto& project = projects.GetProject();
OpenFileInEditor(project.GetPathToScripts() / (args[3] + ".lua"));
});
if (script_name == "main") {
auto all_scripts = lua.GetListScripts("main");
@ -74,6 +68,9 @@ int main(int argc, char* argv[]) {
}
}
}
if (std::find(scripts.begin(), scripts.end(), "main") != scripts.end()) {
}
} catch (...) {
}