MCPcopy Create free account
hub / github.com/codehamr/codehamr / command

Struct command

internal/tui/slash.go:27–32  ·  view source on GitHub ↗

command is one row in the popover, --help, and the dispatch table. args, if non-nil, supplies the argument-level popover entries.

Source from the content-addressed store, hash-verified

25// command is one row in the popover, --help, and the dispatch table.
26// args, if non-nil, supplies the argument-level popover entries.
27type command struct {
28 name string
29 description string
30 handler func(Model, []string) (tea.Model, tea.Cmd)
31 args func(Model) []argOption
32}
33
34// commands lists every slash command, in popover/--help order. Keep it short.
35var commands = []command{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected