Move the Claude Code internals from --help beside the modules relying on them
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user