cmd

package
v0.0.0-...-182577b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommandLine

func ParseCommandLine(ctx context.Context, group string, cmd *slack.SlashCommand) (interface{}, error)

ParseCommandLine pareses the command line and executes the appropriate handlers

func RegisterCmdHandler

func RegisterCmdHandler(cmd, subcmd string, h CommandFunc)

RegisterCmdHandler adds a slash-cmd handler

func SlackCmdLnkk

func SlackCmdLnkk(c *gin.Context, cmd *slack.SlashCommand) (*slack.SectionBlocks, error)

SlackCmdLnkk handles the /lnkk group of commands

Types

type CommandFunc

type CommandFunc func(ctx context.Context, cmd *slack.SlashCommand, cmdLn []string) (interface{}, error)

CommandFunc handles a command

Jump to

Keyboard shortcuts

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