mirror of https://github.com/Hilbis/Hilbish
fix: allow setting current runner to defaults
parent
f6c98d5bc0
commit
42daf59746
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue