MCPcopy Create free account
hub / github.com/dim-an/cod / handleRemoveCommands

Method handleRemoveCommands

server/server.go:448–461  ·  view source on GitHub ↗
(req *RemoveCommandsRequest, _ *util.Warner)

Source from the content-addressed store, hash-verified

446}
447
448func (s *serverImpl) handleRemoveCommands(req *RemoveCommandsRequest, _ *util.Warner) (rsp RemoveCommandsResponse, err error) {
449 s.mutex.Lock()
450 defer s.mutex.Unlock()
451
452 for _, id := range req.HelpPageIds {
453 var executablePath string
454 executablePath, err = s.storage.RemoveHelpPage(id)
455 if err != nil {
456 return
457 }
458 s.notifyExecutableUpdate(executablePath)
459 }
460 return
461}
462
463func (s *serverImpl) runHelpCommand(command datastore.Command, ctx context.Context) (helpPage *datastore.HelpPage, err error) {
464 if len(command.Args) == 0 {

Callers 1

handleRequestMethod · 0.95

Calls 2

RemoveHelpPageMethod · 0.65

Tested by

no test coverage detected