mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:38:30 +00:00
- Full Git dependency support in `dcr.toml`
- Support for `git`, `branch`, `tag`, and `rev` fields
- Automatic cloning and checkout via `git2`
- Dependencies are stored in `target/<profile>/deps/git/`
- New `dcr add` command for easy dependency management
- Short syntax: `github:user/repo`, `gitlab:user/repo`, `path:/to/lib`
- Automatic GitHub resolution for `git:user/repo`
- Visual feedback for dependency fetching with in-place status updates ("Fetching" → "Fetched")
- Modular dependency management architecture in `src/core/deps/`
678 B
678 B
dcr add
Add a dependency to dcr.toml.
Usage
dcr add <name> <source> [options]
Sources
path:./path/to/lib: Local directory.github:user/repo: GitHub repository.gitlab:user/repo: GitLab repository.git:host.com/user/repo: Generic Git repository (HTTPS).https://...: Full Git URL.
Options
--branch <name>: Use a specific branch.--tag <name>: Use a specific tag.--rev <sha>: Use a specific commit hash.
Examples
dcr add my_lib path:./libs/my_lib
dcr add cool_lib github:user/cool_lib
dcr add shared_lib gitlab:org/shared --branch develop
dcr add custom_lib git:git.internal.com/r/lib --tag v1.0.0