MCPcopy Create free account
hub / github.com/github/gh-aw / expandSlashCommandShorthand

Function expandSlashCommandShorthand

pkg/workflow/slash_command_parser.go:34–40  ·  view source on GitHub ↗

expandSlashCommandShorthand takes a command name and returns a map that represents the expanded slash_command + workflow_dispatch configuration.

(commandName string)

Source from the content-addressed store, hash-verified

32// expandSlashCommandShorthand takes a command name and returns a map that represents
33// the expanded slash_command + workflow_dispatch configuration.
34func expandSlashCommandShorthand(commandName string) map[string]any {
35 slashCommandParserLog.Printf("Expanding slash command shorthand: /%s -> slash_command + workflow_dispatch", commandName)
36 return map[string]any{
37 "slash_command": commandName,
38 "workflow_dispatch": nil,
39 }
40}

Callers 2

Calls 1

PrintfMethod · 0.45

Tested by 1