MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _cmd_search

Function _cmd_search

agents/wiki-agent/main.py:57–63  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

55
56
57def _cmd_search(args: argparse.Namespace) -> int:
58 nodes = wiki_db.search_nodes(args.user_id, args.query, node_type=args.type, limit=args.limit)
59 if args.json:
60 print(json.dumps(nodes, ensure_ascii=False, indent=2))
61 else:
62 _print_nodes(nodes)
63 return 0
64
65
66def _cmd_stats(args: argparse.Namespace) -> int:

Callers

nothing calls this directly

Calls 1

_print_nodesFunction · 0.85

Tested by

no test coverage detected