codereg
Version:
A CLI tool for copying and managing source code directly from GitHub repositories, perfect for modern React UI libraries and custom code management.
48 lines (47 loc) • 1.59 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Registry Configuration Schema",
"description": "Schema for defining registries and their sources used by the CLI tool.",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"format": "uri",
"description": "Optional schema reference for IDEs and editors to provide auto-completion and validation."
},
"registry": {
"type": "array",
"description": "List of registry entries containing repository and source definitions.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The unique name of the registry (e.g., 'ui')."
},
"url": {
"type": "string",
"format": "uri",
"description": "The URL of the GitHub repository."
},
"dirname": {
"type": "string",
"description": "Destination directory path in the local project where files from this registry will be copied."
},
"path": {
"type": "string",
"description": "Additional path configuration for the registry."
},
"branch": {
"type": "string",
"description": "The branch name to use when fetching files from the repository (default: main)."
}
},
"required": ["name", "url", "dirname"],
"additionalProperties": false
}
}
},
"required": ["registry"],
"additionalProperties": false
}