Print a file
(self, file)
| 1692 | |
| 1693 | @CLIUtil.addcommand(spaces=True, globsupport=True) |
| 1694 | def cat(self, file): |
| 1695 | """ |
| 1696 | Print a file |
| 1697 | """ |
| 1698 | if self._require_share(): |
| 1699 | return |
| 1700 | # Write the buffer to buffer |
| 1701 | buf = io.BytesIO() |
| 1702 | self._get_file(file, buf) |
| 1703 | return buf.getvalue() |
| 1704 | |
| 1705 | @CLIUtil.addoutput(cat) |
| 1706 | def cat_output(self, result): |
nothing calls this directly
no test coverage detected