2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-28 09:20:41 +00:00

feat: add function to get current runner name

This commit is contained in:
sammyette 2023-01-17 22:04:54 -04:00
parent 109b5785af
commit d99e056a76
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -75,6 +75,12 @@ function hilbish.runner.setCurrent(name)
hilbish.runner.setMode(r.run)
end
--- Returns the current runner by name.
--- @returns string
function hilbish.runner.getCurrent()
return currentRunner
end
hilbish.runner.add('hybrid', function(input)
local cmdStr = hilbish.aliases.resolve(input)