Move the Claude Code internals from --help beside the modules relying on them

This commit is contained in:
2026-09-28 16:52:30 +02:00
parent 1be6ae8187
commit 44cf712dc8
8 changed files with 8 additions and 14 deletions
+1
View File
@@ -18,6 +18,7 @@ def trust(config, roots):
if (wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None)) is not None:
print(f"could not read {config}: projects[{json.dumps(wrong)}] is not an object", file=sys.stderr)
return
# Where Claude Code 2.1.282 keeps a checkout's trust.
untrusted = [path for path in roots if not projects.get(path, {}).get("hasTrustDialogAccepted")]
if not untrusted:
return