Files
jpm/README.md
T
Christoph d5f1dd6366 Implements jeaddons CLI tool
Adds a CLI tool to copy files or folders from a git repository into the current project based on a registry.

The tool provides commands to:
- `add`: Copies files/folders based on registry entries.
- `list`: Lists available registry entries.

Registry entries are defined in `jeAddons/registry.py`.
The tool supports overriding the registry's ref and destination.
2026-02-11 22:18:38 +01:00

804 B

jeAddons

Clone a file or folder from Git repositories into your current project.

add is registry-based (like shadcn add): you manage entries in a dict.

Usage with uvx

  1. Edit jeAddons/registry.py and add entries to REGISTRY.
  2. Run:
uvx jeaddons add <name> [--ref <branch-or-tag>] [--dest <target-dir>] [--force]
  1. See available names:
uvx jeaddons list

Registry example

REGISTRY = {
    "button": {
        "repo": "https://github.com/user/templates.git",
        "path": "src/components/Button.tsx",
        "ref": "main",
        "dest": "src/components",
    },
    "ui": {
        "repo": "https://github.com/user/templates.git",
        "path": "src/components/ui",
        "ref": "v1.2.0",
        "dest": "src/components",
    },
}