(nodes: List[Dict[str, Any]])
| 29 | |
| 30 | |
| 31 | def _print_nodes(nodes: List[Dict[str, Any]]) -> None: |
| 32 | if not nodes: |
| 33 | print("No wiki nodes found.") |
| 34 | return |
| 35 | for node in nodes: |
| 36 | updated = str(node.get("updated_at") or "")[:19] |
| 37 | keywords = str(node.get("keywords") or "").strip() |
| 38 | suffix = f" | {keywords}" if keywords else "" |
| 39 | print(f"{updated} [{node['node_type']}] {node['node_id']} {node['title']}{suffix}") |
| 40 | |
| 41 | |
| 42 | def _cmd_init(_args: argparse.Namespace) -> int: |
no test coverage detected