command is one row in the popover, --help, and the dispatch table. args, if non-nil, supplies the argument-level popover entries.
| 25 | // command is one row in the popover, --help, and the dispatch table. |
| 26 | // args, if non-nil, supplies the argument-level popover entries. |
| 27 | type 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. |
| 35 | var commands = []command{ |
nothing calls this directly
no outgoing calls
no test coverage detected