(pid uint)
| 72 | } |
| 73 | |
| 74 | func apiPollUpdatesMain(pid uint) { |
| 75 | app := NewApplication() |
| 76 | defer app.Close() |
| 77 | |
| 78 | req := server.PollUpdatesRequest{ |
| 79 | Pid: int(pid), |
| 80 | } |
| 81 | rsp := server.PollUpdatesResponse{} |
| 82 | |
| 83 | err := app.Client().Request(&req, &rsp) |
| 84 | verifyFatal(err) |
| 85 | |
| 86 | for _, line := range rsp.Script { |
| 87 | fmt.Println(line) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func apiPostexecMain(pid uint, command string) { |
| 92 | app := NewApplication() |
no test coverage detected