2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-29 08:53:24 +00:00

Destroyed Commander (markdown)

sammyette 2021-10-16 11:16:22 -04:00
parent f82d482493
commit dca6e5ef42

@ -1,16 +0,0 @@
Commander is Hilbish's custom command library, a way to write commands with the shell in Lua.
To require:
```lua
local commander = require 'commander'
```
# Functions
### Commander.register(cmdname, cmdfunction)
Registers a new command named `cmdname`, which executes `cmdfunction` when ran.
#### Example
```lua
commander.register("hello", function ()
print(ansikit.text "{blue}Hello world!{reset}")
end)
```