Documentation ¶
Index ¶
- Variables
- func CharCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
- func CommandHandler(deps dependencies, versionStr string, opts Options) (*cmdhandler.CommandHandler, error)
- func ConfigCommandHandler(deps configDependencies, versionStr, preCommand string) (*cmdhandler.CommandHandler, error)
- func ConfigHandler(deps configDependencies, versionStr string, opts Options) (*cmdhandler.CommandHandler, error)
- func GotCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
- func ListCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
- func NeedCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
var ErrCharacterExists = errors.New("character already exists")
ErrCharacterExists is the error returned when a character already exists
var ErrCharacterNameRequired = errors.New("character name required")
ErrCharacterNameRequired is the error returned when a character name is missing
var ErrItemNameRequired = errors.New("item name required")
ErrItemNameRequired is the error returned when an item name is required
var ErrPositiveValueRequired = errors.New("positive value required")
ErrPositiveValueRequired is the error returned when a positive value is required
var ErrSkillNameRequired = errors.New("skill name required")
ErrSkillNameRequired is the error returned when a skill name is required
Functions ¶
func CharCommandHandler ¶
func CharCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
CharCommandHandler creates a command handler for !char commands
func CommandHandler ¶
func CommandHandler(deps dependencies, versionStr string, opts Options) (*cmdhandler.CommandHandler, error)
CommandHandler creates a new command handler for !char, !need, !got, and !list
func ConfigCommandHandler ¶
func ConfigCommandHandler(deps configDependencies, versionStr, preCommand string) (*cmdhandler.CommandHandler, error)
ConfigCommandHandler creates a handler for !config-hw commands
func ConfigHandler ¶
func ConfigHandler(deps configDependencies, versionStr string, opts Options) (*cmdhandler.CommandHandler, error)
ConfigHandler creates a new command handler for !config-hw
func GotCommandHandler ¶
func GotCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
GotCommandHandler creates a new command handler for !got commands
func ListCommandHandler ¶
func ListCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
ListCommandHandler creates a command handler for !list commands
func NeedCommandHandler ¶
func NeedCommandHandler(deps dependencies, preCommand string) (*cmdhandler.CommandHandler, error)
NeedCommandHandler creates a new command handler for !need commands