GetAndPrintObjects retrieves objects from the specified endpoint and prints them. The endpoint must contain a %s placeholder that will be replaced with items from the args slice. If args contains a single "-" string, the args are read from stdin one per line. If argRe is non-nil, only args that matc
(endpoint string, r StringReader, argRe *regexp.Regexp)
| 159 | // read from stdin one per line. If argRe is non-nil, only args that match the |
| 160 | // regular expression are used and the rest are discarded. |
| 161 | func (p *Printer) GetAndPrintObjects(endpoint string, r StringReader, argRe *regexp.Regexp) error { |
| 162 | return p.GetAndPrintObjectsWithFallback([]string{endpoint}, r, argRe) |
| 163 | } |
| 164 | |
| 165 | // GetAndPrintObjectsWithFallback retrieves objects from the specified endpoints and |
| 166 | // prints them. The function tries the endpoints in the order they are provided |
no test coverage detected