-
Notifications
You must be signed in to change notification settings - Fork 20
command_object
zetaepyon edited this page Jun 30, 2018
·
6 revisions
local command = require('command')
local command_object = command.new(name)Command objects are proxies to register and unregister commands related to a base string. It contains the following functions:
- command_object:register Registers a function to execute on a certain command
- command_object:register_source Registers a function to execute on a certain command, provided with a source argument
- command_object:unregister Removes a function from the command registry
- command_object:syntax Returns a syntax string for a specific command or group of commands