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

Function _cmd_list

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

Source from the content-addressed store, hash-verified

46
47
48def _cmd_list(args: argparse.Namespace) -> int:
49 nodes = wiki_db.list_nodes(args.user_id, node_type=args.type, limit=args.limit)
50 if args.json:
51 print(json.dumps(nodes, ensure_ascii=False, indent=2))
52 else:
53 _print_nodes(nodes)
54 return 0
55
56
57def _cmd_search(args: argparse.Namespace) -> int:

Callers

nothing calls this directly

Calls 1

_print_nodesFunction · 0.85

Tested by

no test coverage detected