(selectors []string)
| 373 | } |
| 374 | |
| 375 | func removeMain(selectors []string) { |
| 376 | app := NewApplication() |
| 377 | defer app.Close() |
| 378 | |
| 379 | var ids []int64 |
| 380 | { |
| 381 | req := server.ListCommandsRequest{ |
| 382 | Selectors: selectors, |
| 383 | } |
| 384 | rsp := server.ListCommandsResponse{} |
| 385 | err := app.Client().Request(&req, &rsp) |
| 386 | verifyFatal(err) |
| 387 | for idx := range rsp.CommandItems { |
| 388 | ids = append(ids, rsp.CommandItems[idx].Id) |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | { |
| 393 | req := server.RemoveCommandsRequest{} |
| 394 | req.HelpPageIds = ids |
| 395 | rsp := server.RemoveCommandsResponse{} |
| 396 | err := app.Client().Request(&req, &rsp) |
| 397 | verifyFatal(err) |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | func updateMain(selectors []string) { |
| 402 | app := NewApplication() |
no test coverage detected