Support external vault roots across tooling

This commit is contained in:
2026-09-20 17:05:21 +02:00
parent 1cb6369282
commit 293b582e97
16 changed files with 573 additions and 204 deletions
+4 -2
View File
@@ -21,6 +21,8 @@ from collections import defaultdict
from pathlib import Path
from typing import Dict, List
from vault_root import parse_vault_args
# Reuse the parser/resolver from generate-graph.py (hyphenated name -> load by path).
_GG_PATH = Path(__file__).resolve().with_name("generate-graph.py")
_spec = importlib.util.spec_from_file_location("generate_graph", _GG_PATH)
@@ -102,9 +104,9 @@ def main() -> None:
default="grouped",
help="output format (default: grouped text)",
)
args = parser.parse_args()
args = parse_vault_args(parser)
root = Path(__file__).resolve().parents[1]
root = args.vault_root
rows = collect(root)
if args.format == "tsv":
print_tsv(rows)