List all documents in the knowledge base.
(ctx)
| 2045 | @click.pass_context |
| 2046 | @_with_kb_lock(exclusive=False) |
| 2047 | def list_cmd(ctx): |
| 2048 | """List all documents in the knowledge base.""" |
| 2049 | kb_dir = _find_kb_dir(ctx.obj.get("kb_dir_override")) |
| 2050 | if kb_dir is None: |
| 2051 | click.echo("No knowledge base found. Run `openkb init` first.") |
| 2052 | return |
| 2053 | print_list(kb_dir) |
| 2054 | |
| 2055 | |
| 2056 | def print_status(kb_dir: Path) -> None: |
nothing calls this directly
no test coverage detected