(selectors []string)
| 399 | } |
| 400 | |
| 401 | func updateMain(selectors []string) { |
| 402 | app := NewApplication() |
| 403 | defer app.Close() |
| 404 | |
| 405 | req := server.ListCommandsRequest{ |
| 406 | Selectors: selectors, |
| 407 | } |
| 408 | rsp := server.ListCommandsResponse{} |
| 409 | err := app.Client().Request(&req, &rsp) |
| 410 | verifyFatal(err) |
| 411 | |
| 412 | sort.Sort(byApplication(rsp.CommandItems)) |
| 413 | |
| 414 | for _, item := range rsp.CommandItems { |
| 415 | if item.Command == nil { |
| 416 | continue |
| 417 | } |
| 418 | req := server.UpdateHelpPageRequest{ |
| 419 | Id: item.Id, |
| 420 | Command: *item.Command, |
| 421 | } |
| 422 | rsp := server.UpdateHelpPageResponse{} |
| 423 | err = app.Client().Request(&req, &rsp) |
| 424 | verifyFatal(err) |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | func exampleConfigMain(createConfig bool) { |
| 429 | if !createConfig { |
no test coverage detected