Get project file tree. detail: 0-3, depth: 0=unlimited.
(detail: int = 0, depth: int = 0)
| 482 | |
| 483 | |
| 484 | def structure(detail: int = 0, depth: int = 0): |
| 485 | """Get project file tree. detail: 0-3, depth: 0=unlimited.""" |
| 486 | state = _load_state() |
| 487 | params = {} |
| 488 | if depth: |
| 489 | params["depth"] = depth |
| 490 | result = _safe_get(state, "/structure", params) |
| 491 | print(json.dumps(result, indent=2)) |
| 492 | return result |
| 493 | |
| 494 | |
| 495 | def variables_list(function: str, file: str): |
nothing calls this directly
no test coverage detected