forked from datalad/git-lad
40 lines
2 KiB
Markdown
40 lines
2 KiB
Markdown
# git-lad: a lean CLI for DataLad operations
|
|
|
|
[](https://github.com/pypa/hatch)
|
|
|
|
This project is in its infancy.
|
|
It aims to provide a modern, alternative command line interface (CLI) for DataLad operations.
|
|
Key features and goals:
|
|
|
|
- clean, standard CLI (implemented with [click](https://click.palletsprojects.com),
|
|
or rather [rich-click](https://ewels.github.io/rich-click)
|
|
- lean code with few dependencies (implementations of operations are provided by [datalad-core](https://hub.datalad.org/datalad/datalad-core), with low-level tooling coming from [datasalad](https://hub.datalad.org/datalad/datasalad)
|
|
- close(r) alignment with [Git](https://git-scm.com)/[git-annex](https://git-annex.branchable.com) conventions and terminology, while retaining compatibility with any [DataLad](https://www.datalad.org) dataset
|
|
- sensible speed across all platforms
|
|
- homogeneous handling of Git repositories with or without an annex (as much as possible), and streamlined work with sub-modules (like DataLad)
|
|
|
|
## Installation
|
|
|
|
Install git-lad with [uv](https://docs.astral.sh/uv) by running:
|
|
|
|
```
|
|
uv tool install git+https://hub.datalad.org/datalad/git-lad.git
|
|
```
|
|
|
|
This provides an immediately usable installation in a user space virtual environment.
|
|
[git-annex](git-annex.branchable.com) is automatically installed as a dependency
|
|
in a matching version as part of the virtual environment.
|
|
|
|
## Features
|
|
|
|
At the moment, the following features/operations are implemented:
|
|
|
|
- `clone`: create a repository clone and ready any annex with support for bare clones, specific-branches, shallow clones, and private annexes.
|
|
- `create`: create a new dataset, also bare, or in git-annex's private mode
|
|
- `get`: obtain missing content in a worktree, across submodule boundaries, as lean as possible by default
|
|
|
|
## Contributing
|
|
|
|
Contributions to this library are welcome! Please see the [contributing
|
|
guidelines](CONTRIBUTING.md) for details on scope and style of potential
|
|
contributions.
|