()
| 193 | } |
| 194 | |
| 195 | func apiListClientsMain() { |
| 196 | app := NewApplication() |
| 197 | defer app.Close() |
| 198 | |
| 199 | req := server.ListClientsRequest{} |
| 200 | rsp := server.ListClientsResponse{} |
| 201 | |
| 202 | err := app.Client().Request(&req, &rsp) |
| 203 | verifyFatal(err) |
| 204 | |
| 205 | for _, client := range rsp.Clients { |
| 206 | fmt.Printf("%v\t%v\n", client.Pid, client.Shell) |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | func initMain(pid uint, shell string) { |
| 211 | app := NewApplication() |
no test coverage detected