MCPcopy Index your code
hub / github.com/github/copilot-sdk / getCommandHandler

Method getCommandHandler

go/session.go:874–879  ·  view source on GitHub ↗

getCommandHandler retrieves a registered command handler by name.

(name string)

Source from the content-addressed store, hash-verified

872
873// getCommandHandler retrieves a registered command handler by name.
874func (s *Session) getCommandHandler(name string) (CommandHandler, bool) {
875 s.commandHandlersMu.RLock()
876 handler, ok := s.commandHandlers[name]
877 s.commandHandlersMu.RUnlock()
878 return handler, ok
879}
880
881// executeCommandAndRespond dispatches a command.execute event to the registered handler
882// and sends the result (or error) back via the RPC layer.

Callers 2

Calls

no outgoing calls

Tested by 1