command

package
v0.0.0-...-182b9a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUnknownCmdMsg

func BuildUnknownCmdMsg(username string) string

BuildUnknownCmdMsg gives a message for unknown command

Types

type Executable

type Executable interface {
	Run(user *slack.User) string
	// contains filtered or unexported methods
}

Executable interface will give command abstraction Run for command execution buildCommand for validation and instantiation isValid to get command validation.

func GetCommand

func GetCommand(text string) Executable

GetCommand this is the main function to return the command by given string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL