From d99e056a76508c8efd5df4e6a9a6bb5a99a3c053 Mon Sep 17 00:00:00 2001 From: sammyette Date: Tue, 17 Jan 2023 22:04:54 -0400 Subject: [PATCH] feat: add function to get current runner name --- nature/runner.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nature/runner.lua b/nature/runner.lua index 9b62ad1..235ab77 100644 --- a/nature/runner.lua +++ b/nature/runner.lua @@ -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)