MCPcopy Create free account
hub / github.com/Qinbf/groundmap / fmt_backlinks

Function fmt_backlinks

scripts/k.py:2353–2363  ·  view source on GitHub ↗
(links)

Source from the content-addressed store, hash-verified

2351
2352
2353def fmt_backlinks(links):
2354 if not links:
2355 print("✅ 没有反向链接")
2356 return
2357 print(f"反向链接({len(links)} 条):\n")
2358 for l in links:
2359 anchor = f"#{l['anchor']}" if l["anchor"] else ""
2360 alias = f" 别名: {l['alias']}" if l["alias"] else ""
2361 print(f" {l['from_path']}:{l['line']} ({l['from_title']}){anchor}{alias}")
2362 print(f" 上下文: {l['context']}")
2363 print()
2364
2365
2366def fmt_outlinks(links):

Callers 1

_main_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected