Hilbish/emmyLuaDocs/commander.lua

19 lines
621 B
Lua
Raw Normal View History

2022-02-25 22:00:39 +00:00
--- @meta
local commander = {}
--- Removes the named command. Note that this will only remove Commander-registered commands.
2022-02-25 22:15:49 +00:00
function commander.deregister(name) end
2022-02-25 22:00:39 +00:00
--- Adds a new command with the given `name`. When Hilbish has to run a command with a name,
--- it will run the function providing the arguments and sinks.
---
---
2022-02-25 22:15:49 +00:00
function commander.register(name, cb) end
2022-02-25 22:00:39 +00:00
2024-04-28 01:29:33 +00:00
--- Returns all registered commanders. Returns a list of tables with the following keys:
--- - `exec`: The function used to run the commander. Commanders require args and sinks to be passed.
function commander.registry() end
2022-02-25 22:00:39 +00:00
return commander