Fix update-readme CLI and allow admin to update any tool's README

Make tool argument optional when --all is used, add validation for
single-tool mode without tool name, and allow admin role to update
READMEs for tools owned by any publisher (e.g. official namespace).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
rob
2026-02-01 01:43:51 -04:00
co-authored by Claude Opus 4.5
parent e83c9c15f3
commit f24450c19c
3 changed files with 6 additions and 2 deletions
+3
View File
@@ -688,6 +688,9 @@ def _cmd_registry_update_readme(args):
# Single tool mode
tool_name = args.tool
if not tool_name:
print("Error: tool name required (or use --all)", file=sys.stderr)
return 1
tool_dir = TOOLS_DIR / tool_name
config_path = tool_dir / "config.yaml"
readme_path = tool_dir / "README.md"