Documentation ¶
Overview ¶
Package commands provides command handling capable of ingesting transport.Events and responding over the provided transport wire. If the userDB is set permissions on a command will be honored otherwise if no userDB is set permissions will be ignored entirely (this could possibly use improvement).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Use string Aliases []string Short string Long string ExecFunc func(ev *transport.Event) error Perms []string Disabled bool Hidden bool UserDB users.DB // contains filtered or unexported fields }
Command is the base for all commands.
func (*Command) AddCommand ¶
AddCommand adds a new Command to the current command as a child.
Click to show internal directories.
Click to hide internal directories.