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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user