(c *cli.Context)
| 12 | type cmdStatusHandler struct{ dialer } |
| 13 | |
| 14 | func (h *cmdStatusHandler) Run(c *cli.Context) error { |
| 15 | if c.Args().Present() { |
| 16 | utils.Fatal("Status doesn't accept any arguments") |
| 17 | } |
| 18 | |
| 19 | conn, err := h.Dial() |
| 20 | utils.FatalOnErr(err) |
| 21 | |
| 22 | fmt.Fprintln(conn, "status") |
| 23 | |
| 24 | utils.ScanLines(conn, func(b []byte) bool { |
| 25 | fmt.Fprintf(os.Stdout, "%s\n", b) |
| 26 | return true |
| 27 | }) |
| 28 | |
| 29 | return nil |
| 30 | } |
nothing calls this directly
no test coverage detected