MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / list_cmd

Function list_cmd

openkb/cli.py:2047–2053  ·  view source on GitHub ↗

List all documents in the knowledge base.

(ctx)

Source from the content-addressed store, hash-verified

2045@click.pass_context
2046@_with_kb_lock(exclusive=False)
2047def 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
2056def print_status(kb_dir: Path) -> None:

Callers

nothing calls this directly

Calls 3

_find_kb_dirFunction · 0.85
print_listFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected