[*] Amend 'namespace' usage instead of 'group]

[+] Added 'getProjectProcessor' API
This commit is contained in:
Reece Wilson 2021-07-02 15:28:24 +01:00
parent 9f5fa6d8e4
commit 4b9da8f776

View File

@ -273,7 +273,7 @@ function attemptNS(ns)
-- this seems to be singleshot.
-- once you switch namespaces, theres no going back, it seems.
-- we try to preserve namespace-project contiguity as much as possible through sorting and evil recursion
namespace(ns)
group(ns)
return attemptLoad
end
@ -364,6 +364,17 @@ function getProjectInfo(name)
return scre.info
end
function getProjectProcessor(name)
if (not name) then
return
end
local scre = projectsprocessor[name]
if (not scre) then
return
end
return scre.processor
end
function getCurrentProjectName()
return current_project
end