Each slash command is now a closure in a map[string]cmdFn. Adding or
removing a command is a single map entry with no fall-through risk.
The ! shell handler is unchanged. handler(infoEvent("")) now fires only
for recognized commands, not unknown /foo inputs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| core.go | ||
| fifo_test.go | ||
| hooks.go | ||
| loop.go | ||
| session.go | ||
| signals.go | ||
| signals_unix.go | ||
| signals_windows.go | ||
| state.go | ||
| types.go | ||
| waitchange_test.go | ||