(self, command_name, response, stream)
| 223 | raise ValueError("Unknown color option: %s" % args.color) |
| 224 | |
| 225 | def _format_response(self, command_name, response, stream): |
| 226 | if self._build_table(command_name, response): |
| 227 | try: |
| 228 | self.table.render(stream) |
| 229 | except OSError: |
| 230 | # If they're piping stdout to another process which exits |
| 231 | # before we're done writing all of our output, we'll get an |
| 232 | # error about a closed pipe which we can safely ignore. |
| 233 | pass |
| 234 | |
| 235 | def _build_table(self, title, current, indent_level=0): |
| 236 | if not current: |
nothing calls this directly
no test coverage detected