fix: allow setting current runner to defaults

runners
TorchedSammy 2022-05-28 18:22:57 -04:00
parent f6c98d5bc0
commit 42daf59746
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 12 additions and 0 deletions

View File

@ -48,7 +48,19 @@ function runnerHandler.exec(cmd, runnerName)
return r.run(cmd) return r.run(cmd)
end end
function runnerHandler.setCurrent(name) function runnerHandler.setCurrent(name)
local defaultRunners = {
'hybrid',
'hybridRev',
'lua',
'sh'
}
if defaultRunners[name] then
hilbish.runner.setMode(name)
return
end
local r = runnerHandler.get(name) local r = runnerHandler.get(name)
currentRunner = name currentRunner = name