(req *RemoveCommandsRequest, _ *util.Warner)
| 446 | } |
| 447 | |
| 448 | func (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 | |
| 463 | func (s *serverImpl) runHelpCommand(command datastore.Command, ctx context.Context) (helpPage *datastore.HelpPage, err error) { |
| 464 | if len(command.Args) == 0 { |
no test coverage detected