Read a range of lines from a file.
(file: str, start: int = 0, end: int = 50)
| 474 | |
| 475 | |
| 476 | def peek_file(file: str, start: int = 0, end: int = 50): |
| 477 | """Read a range of lines from a file.""" |
| 478 | state = _load_state() |
| 479 | result = _safe_get(state, "/peek", {"file": file, "start": start, "end": end}) |
| 480 | print(json.dumps(result, indent=2) if isinstance(result, (dict, list)) else result) |
| 481 | return result |
| 482 | |
| 483 | |
| 484 | def structure(detail: int = 0, depth: int = 0): |
nothing calls this directly
no test coverage detected