Function
cmdWithPrint
(addr net.TCPAddr, c byte, params ...byte)
Source from the content-addressed store, hash-verified
| 254 | } |
| 255 | |
| 256 | func cmdWithPrint(addr net.TCPAddr, c byte, params ...byte) error { |
| 257 | out, err := cmd(addr, c, params...) |
| 258 | if err != nil { |
| 259 | return err |
| 260 | } |
| 261 | fmt.Printf("%s", out) |
| 262 | return nil |
| 263 | } |
| 264 | |
| 265 | // targetToAddr tries to parse the target string, be it remote host:port |
| 266 | // or local process's PID. |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…